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

maol's gravatar image



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%20Serdyuk's gravatar image

Oksana Serdyuk ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 14 Oct '15, 18:38

Seen: 772 times

Last updated: 15 Oct '15, 15:15

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal