SptRotateSqrTft(bBufferS As bTftLibParameter1, wAngleDeg As wTftLibParameter1, wBackGround As wTftLibParameter2, wOrgX As wTftLibParameter3, wOrgY As wTftLibParameter4, bTransparent As bTftLibParameter2, wAlphaColor As wTftLibParameter5), Byte
Rotate the contents of a square sprite buffer CW by an integer angle and print the result directly to the TFT screen.
|
Parameter |
Description |
|
bBufferS |
Source sprite buffer. |
|
wAngleDeg |
Rotation angle in degrees (integer). |
|
wBackGround |
Background fill color for regions outside the rotated image (corner gaps). |
|
wOrgX |
X-coordinate of the bottom-left corner on the TFT where the image will be drawn. |
|
wOrgY |
Y-coordinate of the bottom-left corner on the TFT where the image will be drawn. |
bTransparent —
0 = Normal print (no transparency)
1 = Transparent print (skip pixels matching the alpha color)
wAlphaColor — Alpha-key color used when transparency is enabled.
|
Value |
Meaning |
|
0 |
Success |
|
1 |
Invalid source buffer |
|
2 |
Rotation requires a square buffer (width ≠ height) |
|
3 |
Destination area exceeds screen boundaries |
Created with the Personal Edition of HelpNDoc: Free help authoring environment