Re: Retrieve NATIVE screen resolution

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"mr_unreliable" <kindlyReplyToNewsgroup@xxxxxxxxxxx> wrote in message
news:eYBKSMjxHHA.3364@xxxxxxxxxxxxxxxxxxxxxxx
Allan, It may not be too much of a stretch to assume that:
either the system is already set up for the optimum monitor
resolution, _or_ that the user has changed the setting to
whatever he/she wants.

In either case, you could then take the approach of getting
the existing setting. You probably know how, but in case
you missed that, it is contained in the "VideoModeDescription"
property of the win32_VideoController class.

So here's the suggestion. Get the current setting (assuming
that is o.k. with the user), and save it somewhere. Run your
configuration script. When that is finished, then go retrieve
the original setting, and restore it.

Otherwise, if all else fails, google "Optimal Monitor Resolution".
Some people have posted tables, recommending optimal resolutions,
for different sized monitors. Without any other explicit info,
you could just use the value recommended by the table.

cheers, jw

Here's my two cents worth:

CRT type monitors don't have a native resolution. They are typically analog
devices (although the color dot/stripe and mask hardware inside the CRT tube
implies a certain digitalness).

Flat panel monitors are typically digital devices with a specific number of
pixels horizontaly and vertically. The display is sharpest when that
'native' resolution is used by the display adapter. Some systems allow you
to specify the native or smaller resolutions only -- when smaller
resolutions are specified, a corresponding smaller area of the display is
used and no sharpness is lost. Other systems allow you to specify a range
of non-native resolutions and interpolate as necessary to produce an image
which fills the screen but which is noticably fuzzy as compared to images in
native resolution, and which may be distorted if the native pixel width to
height ratio is not maintained. 1024 by 768 will look a little fuzzy and
perhaps distorted on a 1440 by 900 wide screen monitor.

I suppose a script could be written to use WMI to get a list of monitors the
organization uses, and then search the net for the digital ones and maybe to
classify the analog monitors by their width to height ration (I assume there
are widescreen CRT monitors) to build the table that Allan's script could
use to set the desired resolution. Perhaps the table could be built by hand
for the 20 or 50 most-used monitors.

-Paul Randall


.



Relevant Pages

  • Re: Incorrect Rectangle dimensions using GDI+
    ... Plug and play monitors should report their physical size and resolution so ... that the system can adjust the output for WYSIWYG display. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: 1920x1080 Monitors
    ... Roger wrote: ... I am considering making my first entry into HDTV and have been looking around for monitors that will display the full 1080i resolution. ...
    (alt.tv.tech.hdtv)
  • Re: Where are the BEST Point and Shoot Photos ?
    ... True, and for the sake of correctness, "most monitors" nowadays do run ... emergency backup LCD, its resolution is 96.5 ppi, that comes out to 289.5 dpi. ... Where oh where does your inches vs. display size vs. resolution reasoning come ...
    (rec.photo.digital)
  • Re: Retrieve NATIVE screen resolution
    ... I agree with you concerning high-res monitors, but I think i may have left ... compiled code so that i can deploy it on any hardware. ... regarding the native or optimum resolution for any given monitor.... ... api's from script is frowned upon by scripting professionals). ...
    (microsoft.public.scripting.wsh)
  • Re: Opening new browser window in 2nd monitor?
    ... I should have have said "display" not screen... ... this option "stretches" your desktop across multiple monitors. ... Although there ARE multiple monitors applications actually only see one primary display (with an odd resolution). ... JavaScript only returns information on the primary display even if the browser window is currently on the secondary display. ...
    (comp.lang.javascript)