Shear method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int Shear (int iAngle, bool bHorizontal, int crFill);

Delphi Syntax

Shear (iAngle:Integer; bHorizontal:Boolean; crFill:TColorRef): Integer;

Overview

Refer to Examining and Altering Bitmaps.

Remarks

Moves the corners of the bitmap in the fashion of a parallelogram.

You specify an angle of slant, horizontal or vertical shear, and the fill color for the created space. The angle is expressed in hundredths of degrees, with a limit of 4500 (45 degrees).

The following are horizontal and vertical examples:

image\shear.gif

See Also

Topics:

Raster Images: Doing Geometric Transformations

 

Raster Images: Methods That Transform the Region and the Bitmap