SptReadTft()

Parent Previous Next

SptReadTft(wOrgX As wTftLibParameter1, wOrgY As wTftLibParameter2, wWidth As wTftLibParameter3, wHeight As wTftLibParameter4, bBuffer As bTftLibParameter1, bTransparent As bTftLibParameter2, wAlphaColor As wTftLibParameter5, bOverlay As bTftLibParameter3), Byte


Transfers a rectangular area from the TFT screen into a sprite buffer. Optional transparency and pixel overlay modes may be applied during the transfer.


wOrgX - X coordinate of the bottom-left corner of the screen area to read

wOrgY - Y coordinate of the bottom-left corner of the screen area to read

wWidth - Width of the area to transfer, in pixels

wHeight - Height of the area to transfer, in pixels

bBuffer - Destination sprite buffer

bTransparent - Transparency mode:

0 = Normal transfer (no transparency)

1 = Transparent transfer (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: Maximize Your Documentation Efficiency with a Help Authoring Tool