Community

[FR Engine 11 SDK] Get coordinates of cropped image ?

Hi,

Is there a way to get the coordinates of the cropped region when applying auto-cropping by calling imageDocument.CropImage() ?

Was this article helpful?

0 out of 0 found this helpful

Comments

1 comment

  • Avatar
    Permanently deleted user

    Hi,

    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.

    0

Please sign in to leave a comment.