SptRotateRectBuf(bBufferS As bTftLibParameter1, bBufferD As bTftLibParameter2, wAngleDeg As wTftLibParameter1, wBackGround As wTftLibParameter2), Byte
Rotates a sprite counter-clockwise by an integer angle and stores the result in a destination buffer.
|
Parameter |
Description |
|
bBufferS |
Source sprite buffer. |
|
bBufferD |
Destination sprite buffer. |
|
wAngleDeg |
Rotation angle in degrees. |
|
wBackGround |
Fill color used for uncovered corner pixels. |
|
Value |
Meaning |
|
0 |
Success. |
|
1 |
Invalid source buffer. |
|
2 |
Invalid destination buffer. |
|
3 |
Destination buffer too small. |
The destination buffer must be large enough to hold the rotated bounding box:
NewWidth
= CEILING(|OrigWidth·cos(angle)| + |OrigHeight·sin(angle)|)
NewHeight = CEILING(|OrigWidth·sin(angle)| + |OrigHeight·cos(angle)|)
Created with the Personal Edition of HelpNDoc: Free help authoring environment