Hi Alex -
OK, I did some more testing and this is what I found:
1) I have two sample images - A.png and B.png
A.png is 72x72 @ 72dpi
B.png is 80x31 @ 150dpi
2) When I use A.png as an IPXC_Image (for general placement on a page)
IPXC_Image AImage = pDoc.AddImageFromFile("A.png");
it is returned as 72x72 pixels
When I use A.png as an Annotation Image loaded into a Collection, etc.:
IAFS_File tmpFile = fsInst.DefaultFileSys.OpenFile(tmpName, openFileFlags);
it is also returned as 72x72 pixels.
3) However, if I use B.png in both scenarios,
when loaded as an IPXC_Image it is returned as 80x31 (the dpi is ignored)
but when loaded for an Annotation it is returned as 38x15 (the dpi is implemented)
So, my questions are:
A) Why does one method return the size without regard to dpi (IPXC_Image)
but the other method (Annotation) returns the size based on 72 dpi ?
B) How can I ensure that regardless of the "image loading method" that I use, I can get
consistent results without first knowing the image dpi?
For example, how can I ensure that both of the above sample images either adhere to
72dpi, or ignore the dpi ?