Rotate method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int Rotate (int iAngle, int iFlags, int crFill);

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:

image\sqrblit.gif It uses the center of the bitmap as the center of rotation.

image\sqrblit.gif It can rotate the bitmap clockwise or counterclockwise up to 360 degrees in hundredth-of-a-degree increments.

image\sqrblit.gif 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.

image\sqrblit.gif It lets you specify the background color to fill any new area created by the rotation.

See Also

Elements:

FastRotate method, ApplyTransformationParameters method, GetMarksCenterMass method, GetTransformationParameters method, IsRegMark method, SearchRegMarks method

Topics:

Raster Images: Doing Geometric Transformations

 

Raster Images: Methods That Transform the Region and the Bitmap

 

Raster Image Functions: Document Imaging

 

Detecting Registration Marks