Skip to main content
This object contains information about the pixel coordinates on the image at the moment when it was obtained from the ImageDocument object (the CoordinatesConverter property). It allows you to convert the pixel coordinates from one image modification state to another. You can use this object to convert the pixel coordinates between any two stages in the image processing. For example:
  1. Obtain this object directly after image opening, during which image skew was corrected.
  2. Apply a number of other modifications and obtain another instance of this object from the ImageDocument.
  3. Now you can convert pixel coordinates between the initially deskewed image plane and the modified image plane by twice applying the ConvertCoordinates method:
    • convert from the deskewed image plane to the original using the first instance of the CoordinatesConverter;
    • convert the result from the original image plane to the modified image plane using the second instance of the CoordinatesConverter.
The CoordinatesConverter object is a persistent object. This means that the object’s current state can be written to persistent storage. Later, the object can be re-created by reading the object’s state from the persistent storage. The following methods provide persistence of the object: Linux: SaveToFile, and LoadFromFile Windows: SaveToFile, LoadFromFile, SaveToMemory, and LoadFromMemory.

Properties

Methods

CoordinatesConverter Object Diagram

Samples

Here is a Windows sample where this object is used to convert coordinates between two different modification states:

C#

This object is also used in the Business Card Recognition code sample for macOS.

See also

ImageDocument Working with Images Working with Properties