Hi,

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

maol
2911


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.

link

answered 15 Oct '15, 15:15

Oksana%20Serdyuk's gravatar image

Oksana Serdyuk ♦♦
1.4k16

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×35
×3

Asked: 14 Oct '15, 18:38

Seen: 732 times

Last updated: 15 Oct '15, 15:15

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