You can't change the Display (or Printer) DPI setting to a particular value, though 
you can make changes to the resolution that affect DPI.  All you can [at best] do is 
change the number of dots (pixels) displayed on the full screen (or, for a printer, on 
a page).

You can't write software that changes the physical size of the screen; since DPI is 
"dots per inch", all you can change is "dots" which will be divided by the screen 
width (or height) (in inches) resulting in some particular DPI value.

At 05:36 PM 9/3/2003 +0300, =?windows-1255?B?4OXk4yDp+fjg7Ok=?= wrote
>
>Hi,
>
>I am looking for an api to change the Display DPI setting (Display properties -> 
>Settings - > Advance)
>I know how to change the screen resolution color death etc... Using 
>ChangeDisplaySettings api of user32
>but I could not find anywhere how to change the dpi settings through programming lang.
>
>Is there anyone out there who knows the answer ?
>
>Ohad.


J. Merrill / Analytical Software Corp

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com
  • [A... אוהד ישראלי
    • ... Jekke Bladt
      • ... Peter Vervoorn
    • ... J. Merrill
    • ... אוהד ישראלי
    • ... Paul Stevens
    • ... אוהד ישראלי
    • ... Paul Stevens
    • ... J. Merrill

Reply via email to