SptClipWriteTft()

Parent Previous Next

SptClipWriteTft(wPrintOrgX As wTftLibParameter1, wPrintOrgY As wTftLibParameter2, wSourceOrgX As wTftLibParameter3, wSourceOrgY As wTftLibParameter4, wSourceWidth As wTftLibParameter5, wSourceHeight As wTftLibParameter6, bBuffer As bTftLibParameter1, bTransparent As bTftLibParameter2, wAlphaColor As wTftLibParameter7, bOverlay As bTftLibParameter3)

  

Transfers a rectangular portion (window) of a sprite buffer to the TFT screen. The transfer uses an explicitly defined source region width and height.


wPrintOrgX - X coordinate of the bottom-left corner on the TFT destination

wPrintOrgY - Y coordinate of the bottom-left corner on the TFT destination

wSourceOrgX - X coordinate of the bottom-left corner of the source region in the sprite buffer

wSourceOrgY - Y coordinate of the bottom-left corner of the source region in the sprite buffer

wSourceWidth - Width of the source region to transfer, in pixels

wSourceHeight - Height of the source region to transfer, in pixels

bBuffer - Sprite buffer to read from

bTransparent - Transparency mode:

0 = Normal rendering (no transparency)

1 = Transparent rendering (skip pixels matching wAlphaColor)

wAlphaColor - Alpha color value used when transparency is enabled

bOverlay - Pixel overlay / blending mode:

0  = NONE  - No overlay; direct pixel replacement

1  = OR    - Bitwise OR; lightens overlapping areas

2  = AND   - Bitwise AND; intersection-style effect

3  = XOR   - Bitwise XOR; highlights differences

4  = NAND  - Inverted AND; brightens overlap zones

5  = NOR   - Inverted OR; creates darker overlays

6  = XNOR  - Inverted XOR; strong masking effect

7  = ADD   - Color addition; brightens overlapping regions

8  = SUB   - Color subtraction; darkens overlapping regions

9  = AVG   - Color averaging; soft blending effect

10  = SCR   - Screen blend; brightens highlights

11  = MUL   - Multiply blend; darkens overlapping areas

12  = CON   - Contrast blend; non-linear midtone enhancement


Notes:

Created with the Personal Edition of HelpNDoc: Experience the Power and Ease of Use of HelpNDoc for CHM Help File Generation