|
|
 |
cliebl$2007102 cliebl 04/13/2007 :: 17:12
Registered
| | I'm wanting to use this control to replace the existing one we're currently using. Problem is the old one was able to zoom on a certain area by inches, so the users can define what area on a particular document they always want to zoom in on. I see the setrectvalues is only in pixels. Can you point me in a direction on how I can still use this control and get it to zoom on the same area it was before? I don't see any safe way of converting pixels to inches and didn't know if it might be available and I was overlooking it here. Thanks! | |
 |
Loïc$2006306 Loïc 04/13/2007 » 17:31
Registered
| | Hi,
You have just to convert inches to pixels.
It is easy:
nPixels = nInches * IMAGE_RESOLUTION
ex:
You have a 72 DPI image. You want to get the number oh pixel in 4 inches = > NUMBER_OF_PIXELS = 72 * 4
Best regards,
Loïc Carrère
Edited by @lcarrere | |
 |
Loïc$2006306 Loïc 04/13/2007 :: 17:31
Registered
| | ... And To convert Pixels to Inches:
nInches = IMAGE_RESOLUTION / nPixels
| |