The Aspect* and LogPixels* Values from GetDeviceCaps()

Last reviewed: February 16, 1995
Article ID: Q23510
The information in this article applies to:
  • Microsoft Windows Device Driver Kit (DDK) for Windows versions 3.0 and 3.1

The Microsoft Windows graphical environment operates with a number of hardware devices, and therefore a Windows installation includes a collection of device drivers that provide information about the particular hardware.

Windows uses the AspectX, AspectY, and AspectXY constants returned by GetDeviceCaps() to draw dotted and dashed lines that appear the same regardless of the line's orientation. The AspectX and AspectY values are dimensionless numbers that form the legs of a right triangle on the device; the AspectXY value is the length of the hypotenuse. The ratio of AspectY to AspectX is the aspect ratio of the device. The Windows graphics device interface (GDI) uses this information to draw round circles, for example.

The AspectX, AspectY, and AspectXY values should be small (less than 100 each, for example). The size of these values impacts the length of a patterned brush provided by GDI.

The LogPixelsX and LogPixelsY values describe the actual physical resolution of the device.


Additional reference words: wfw 3.00 3.10 3.11 DDKDISPLAY DDKPRINT
KBCategory: kbprg
KBSubcategory: GdiDc


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 16, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.