libmsx
C library for MSX
Loading...
Searching...
No Matches
Trimming (Cropping) for 16x16 1bpp sprite patterns.

Trimming (Cropping) for 16x16 1bpp sprite patterns. More...

+ Collaboration diagram for Trimming (Cropping) for 16x16 1bpp sprite patterns.:

Functions

void im_trim_SP16x16 (uint8_t tblr[4], const SP16x16 *src, SP16x16 *dst)
 MSX Trim 16x16 pixels 1bpp sprite pattern.
 

Detailed Description

Trimming (Cropping) for 16x16 1bpp sprite patterns.

OPERATOR ROM/RAM to RAM ROM/RAM to VRAM
TRIMMING (CROPPING) im_trim_SP16x16() n/a

Function Documentation

◆ im_trim_SP16x16()

void im_trim_SP16x16 ( uint8_t  tblr[4],
const SP16x16 src,
SP16x16 dst 
)

MSX Trim 16x16 pixels 1bpp sprite pattern.

Parameters
tblrAmount of pixels to be trimmed.
1 byte each for top, bottom, left, and right.
  • tblr[0] : Top
  • tblr[1] : Bottom
  • tblr[2] : Left
  • tblr[3] : Right
srcPointer to source sprite pattern.
srcPointer to destination sprite pattern.