Have you tried setting the image’s resolution to 72ppi?
I did, andd while that did help to center the image on the page, now all my measurements are coming out about 4 times too small. I'm also worried that changing the resolution might cause the image to lose some data due to resizing.
What exactly does changing the resolution do? Why does this center things? How can I calculate points so that they exactly touch the edge of the document?
I'm also worried that changing the resolution might cause the image to lose some data due to resizing.
That’s why, in such a case, one should resize with »ResampleMethod.NONE«
Okay, but what's so special about using 72 DPI? I'm specifiying to use pixels, so shouldn't this not matter?
Also, how to I get my measurements to exactly match the dimensions of the document? While setting 72 DPI does center things, the X I draw is still the wrong size.
The code you posted produces lines with points in the corners of the image for me when the image is 72ppi.
Could you post a screenshot of the faulty results with the pertinent Panels visible?
Okay, but what's so special about using 72 DPI?
At 72ppi 1 pixel corresponds with 1 point.
Okay, I got it working. Thanks for your help.