Rotate method (Main Control)
Builder Syntax |
|
Delphi Syntax |
Rotate (iAngle:LongInt; iFlags:Integer; crFill:TColorRef): Integer; |
Overview |
Refer to Examining and Altering Bitmaps. |
Remarks
Rotates the bitmap by the hundredths of degrees specified, and lets you specify the background color to be uncovered.
This method has the following features:
It uses the center of the bitmap as the center of rotation.
It can rotate the bitmap clockwise or counterclockwise up to 360 degrees in hundredth-of-a-degree increments.
It can resize the bitmap to accommodate the rotated height and width, or it can retain the original height and width, cropping the bitmap as necessary.
It lets you specify the background color to fill any new area created by the rotation.
See Also