Click to See Complete Forum and Search --> : Graphics.DrawImage


logan
June 19th, 2006, 11:15 AM
The DrawImage method draws an image using its physical size, so the image will have its correct size in inches regardless of the resolution (dots per inch) of the display device. For example, suppose an image has a pixel width of 216 and a horizontal resolution of 72 dots per inch. If you call DrawImage to draw that image on a device that has a resolution of 96 dots per inch, the pixel width of the rendered image will be (216/72)*96 = 288.


What if I want to draw the image using it's original width and height? For the above example that would be 216.

And, how can I get the resolution of the desktop without using Windows API?