Skip to main content
This method transforms an image so that the specified trapezoid becomes a rectangle. Can be used to manually correct slight perspective distortion.

Syntax

Parameters

Image [in] This variable refers to the Image object which is to be preprocessed. TopLeftX [in] Specifies the horizontal coordinate of the left top corner of the resulting image on the input image in pixels. TopLeftY [in] Specifies the vertical coordinate of the left top corner of the resulting image on the input image in pixels. TopRightX [in] Specifies the horizontal coordinate of the right top corner of the resulting image on the input image in pixels. TopRightY [in] Specifies the vertical coordinate of the right top corner of the resulting image on the input image in pixels. BottomLeftX [in] Specifies the horizontal coordinate of the left bottom corner of the resulting image on the input image in pixels. BottomLeftY [in] Specifies the vertical coordinate of the left bottom corner of the resulting image on the input image in pixels. BottomRightX [in] Specifies the horizontal coordinate of the right bottom corner of the resulting image on the input image in pixels. BottomRightY [in] Specifies the vertical coordinate of the right bottom corner of the resulting image on the input image in pixels. ResultWidth [in] Specifies the width of the resulting image in pixels. By default, it is -1, which means that the width is detected automatically. ResultHeight [in] Specifies the height of the resulting image in pixels. By default, it is -1, which means that the height is detected automatically. Result [out, retval] A pointer to the IImage* pointer variable that provides access to the resulting image.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.

See also

ImageProcessingTools