TftBmpMemIndRotate(wFileIndex As wTftLibParameter1, wX_Pos As wTftLibParameter2, wY_Pos As wTftLibParameter3, wAngleDeg As wTftLibParameter4, wBackground As wTftLibParameter5, bTransparent As bTftLibParameter1, wAlphaColor As wTftLibParameter6, bInvert As bTftLibParameter2, bOverlay As bTftLibParameter3), Byte
Renders a BMP by index stored in FLASH memory, rotates it counter-clockwise by a specified angle, and applies optional transparency, inversion, and pixel-overlay effects.
|
Parameter |
Description |
|
wFileIndex |
Zero-based BMP file index in FLASH memory. |
|
wX_Pos |
X-coordinate of the rotated image’s lower-left corner. |
|
wY_Pos |
Y-coordinate of the rotated image’s lower-left corner. |
|
wAngleDeg |
Rotation angle in degrees (CCW). |
|
wBackground |
Fill color for exposed areas created by rotation. |
|
bTransparent |
Transparency mode: |
|
wAlphaColor |
Alpha-key color used when transparency is enabled. |
|
bInvert |
Color inversion: |
|
bOverlay |
Pixel overlay/blending mode: |
|
Value |
Meaning |
|
0 |
Success |
|
1 |
Origin outside visible area |
|
2 |
BMP width or height is zero |
|
4 |
BMP partially printed outside the visible area |
Processing order: transparency → inversion → overlay → draw.
Transparency is slower because each pixel must be evaluated individually.
Overlay effects are slower due to pixel read-modify-write behavior.
When global TftPixelCheck is enabled:
Images fully outside the visible area are skipped.
Images partially outside are clipped to screen boundaries.
Created with the Personal Edition of HelpNDoc: Free help authoring tool