Hi,
Is there a way to get the coordinates of the cropped region when applying auto-cropping by calling imageDocument.CropImage() ?
Hi,
Is there a way to get the coordinates of the cropped region when applying auto-cropping by calling imageDocument.CropImage() ?
0人中0人がこの記事が役に立ったと言っています
コメント
1件のコメント
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.
サインインしてコメントを残してください。