This method corrects a warped raster image.

[Visual Basic]
Public Function Affine(x1 As Integer, y1 As Integer, x2 As Integer, y2 As Integer, x3 As Integer, y3 As Integer, x4 As Integer, y4 As Integer) As Boolean
[C#]
public bool Affine(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4);

Parameters

x1 to x4
     The x coordinates of the four points defining the area for Affine changes. (in pixels)

y1 to y4
     The y coordinates of the four points defining the area for Affine changes. (in pixels)

Return Value

Returns True if successful. Returns False if unsuccessful.

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 SourceImage 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 DestinationImage property.

See Also

Effect Class | Effect Members

The ImageKit.NET3 is created by Newtone Corporation