Convert Coordinates

During preprocessing, the image size and inner elements position might be changed after deskew and/or orientation correction.

Use ConvertCoordinates method of ImageDocument object to find out the initial coordinates of the certain element.

Example

int x=100, y=100; //x, y contain coordinates on the deskewed image
document.Pages[0].ImageDocument.ConvertCoordinates(FREngine.ImageTypeEnum.IT_Deskewed,
FREngine.ImageTypeEnum.IT_Base, ref x, ref y);
//now x, y contain corresponding coordinates on the source image

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Recently viewed