Is there a way to get the coordinates of the cropped region when applying auto-cropping by calling imageDocument.CropImage() ?
asked 14 Oct '15, 18:38
For this purpose you can use the CoordinatesConverter object, which contains information about the pixel coordinates on the image at the moment when it was obtained from the ImageDocument object. This object has the ConvertCoordinates method which converts coordinates of a pixel between different modification states of the ImageDocument.
So, firstly you can create a snapshot of coordinates after opening the image, perform cropping and then create one more snapshot of coordinates for the cropped image.
You can find the code sample (in C#) in the Developer's Help -> API Reference -> Image-Related Objects -> CoordinatesConverter.
answered 15 Oct '15, 15:15
Oksana Serdyuk ♦♦