This method corrects a warped raster image

[C++Builder]   [ bool = ]imagekitcontrolname->Effect->Affine(int Px1, int Py1, int Px2, int Py2, int Px3, int Py3, int Px4, int Py4)
[Delphi]   [ Boolean = ]imagekitcontrolname.Effect.Affine(Px1, Py1, Px2, Py2, Px3, Py3, Px4, Py4: Integer)

Parameters

Name Explanation
Px1-Px4 The x coordinates of the four points defining the area for Affine changes. (in pixels)
Py1-Py4 The y coordinates of the four points defining the area for Affine changes. (in pixels)

Return Value

Returns True if successful, otherwise returns False.

Explanation

The Affine method corrects a warped raster image. (Px1,Py1), (Px2,Py2), (Px3,Py3), (Px4,Py4) are the points of the (irregular) quadrangle that surrounds the area in the image to be corrected. The corrected area is squared and scaled to fit into a regular rectangle.

To execute the Affine method, set the image handle of the image in the ImageHandle property or the Layer(LayerNo).ImageHandle property. The Affine method supports 1, 4, 8, 16, 24, and 32 bit color images. If successful the resulting raster image data is set in the LayerNo property (the ImageHandle property or the Layer(LayerNo).ImageHandle property. If unsuccessful, 0 is returned.

When the Caption, Message, and ButtonName properties are blank, the progress dialog box will not be displayed. When the progress dialog box is displayed, the percentage that the processing has completed will be shown in the dialog box.

The ImageKit10 VCL is a product created by Newtone Corporation