« The Kailua Project - The forgotten methods in the ADO.NET API | Main | Passing an enumerated list to a PropertyBag for a PropertyGrid »

Comments

Leonjollans

Thanks a bundle for this, I too spent ages looking through the Screen class and so on. Equally amazed this needed p/invoke, especially with all the Win 7 trumpeting about high DPI support :-. (whistles).

I haven't done enough GDI to have knocked this out quickly myself.. so thanks again!

David Thielen

Try changing your screen properties to large fonts - then you will see this as 105.

DJ Burb

This is the same as Graphics.DpiX and Graphics.DpiY in .Net..... which they both don't work properly...

The return value is not resolution independent..... i get 96 dpi as my value on all my resolutions.

The comments to this entry are closed.