For LEADTOOLS v17.5 and earlier, the above information is correct. It is related to Leadtools.Annotations, which is deprecated in LEADTOOLS v18.
For v18 customers, the following online help topic contains a sample code that converts from Annotations units to Image units:
http://www.leadtools.com/help/leadtools/v18/dh/ac/wleadtools.annotations.core~leadtools.annotations.core.anncontainer~mapper.html
If you are using Annotations Automations, you just need to change the code as follows:
+----------------+
// Get the rectangle in annotations units
LeadRectD rc = _automation.CurrentEditObject.Bounds;
MessageBox.Show("Annotations units: " + rc.X + "," + rc.Y + "," + rc.Width + "," + rc.Height);
// Convert it to image coordinates
rc = _automation.Container.Mapper.RectFromContainerCoordinates(rc, AnnFixedStateOperations.None);
MessageBox.Show("Image units (pixels): " + rc.X + "," + rc.Y + "," + rc.Width + "," + rc.Height);
// If this container is used with an image, you can use the pixels values above to find the exact value on the image
// Convert it to back to annotations units
rc = _automation.Container.Mapper.RectToContainerCoordinates(rc);
MessageBox.Show("Original units: " + rc.X + "," + rc.Y + "," + rc.Width + "," + rc.Height);
+----------------+
I am attaching a small C# WinForms 2010 project using the new LEADTOOLS 18 Annotations classes (Leadtools.Annotations.Core) that shows how you can draw an object and then get it's coordinates in different units (including Image coordinates).
Thanks,
Maen Badwan
LEADTOOLS Technical Support