TftBmpFromCode(dwBmpAlias As dwTftLibParameter1, wOriginX As wTftLibParameter1, wOriginY As wTftLibParameter2, bTransparent As bTftLibParameter1, wAlphaColor As wTftLibParameter3, bInvert As bTftLibParameter2, bOverlay As bTftLibParameter3)
Description:
Prints a BMP image stored in program (flash) memory to the TFT screen, with optional image processing effects.
|
Parameter |
Description |
|
dwBmpAlias |
Alias name of the BMP image table stored in flash memory |
|
wOriginX |
X-coordinate of the bottom-left corner on the screen where the image will be drawn |
|
wOriginY |
Y-coordinate of the bottom-left corner on the screen where the image will be drawn |
|
bTransparent |
Transparency mode: |
|
wAlphaColor |
Alpha color value used when transparency is enabled |
|
bInvert |
Color inversion mode: |
|
bOverlay |
Pixel overlay (blending) effect: |
Processing order is: transparency check → color inversion → overlay → final pixel output.
Transparent rendering is slower because each pixel must be evaluated individually, rather than using block-based transfers.
Overlay effects further reduce performance, as they require reading, modifying,and writing each destination pixel.
If the global "TftPixelCheck" flag is enabled, boundary checks are performed:
If the image lies completely outside the visible screen area, it will not be drawn.
If the image is partially outside the visible area, it will be clipped to the screen boundaries before rendering.
Created with the Personal Edition of HelpNDoc: Save time and frustration with HelpNDoc's WinHelp HLP to CHM conversion feature