HOWTO: How to Make an Application Display Real Units of Measurement (127152)
The information in this article applies to:
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows Software Development Kit (SDK) 3.1
- Microsoft Win32 Application Programming Interface (API)
This article was previously published under Q127152 SUMMARY
Sometimes you need an application to display things in terms of a real unit
of measurement such as an inch or millimeter. When dealing with a printer,
resolution is usually given in dots per inch (DPI), which makes it easy to
convert pixels to real inches. However, on a video display, resolution is
given only in pixels. A given video mode will be some X pixels wide with no
information as to the real dimensions of the display area.
Because there is no way to programmatically determine the real dimensions
of the viewable area on a video display, it is impossible for a program to
determine real output dimensions. Two manual methods for determining real
output dimensions are given in this article.
Modification Type: | Minor | Last Reviewed: | 3/7/2005 |
---|
Keywords: | kbhowto KB127152 |
---|
|