Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Windows Graphics object DPIX And DPIY properties in c#

$
0
0


Hi


I am working on a desktop application in c# in Visual Studio 2010.  I needed to draw some shapes and so i was testing DPIX and DPIY properties of Graphics object in OnPaint method. Both DPIX and DPIY properties are showing 96.0 when i debug my application. I changed the screen resolution and tested again it was still 96.0 for both properties. What i understand is DPI means dots per inch, and for monitor or LCD display it is pixels per inch. if so then DPI should change with change in screen resolution(I am testing it on LCD Display screen of my laptop). Here i am confused where am i going wrong?

Thanks in advance for your time.




Viewing all articles
Browse latest Browse all 12583

Trending Articles