The information in this article applies to:
SUMMARYGDI functions, such as Rectangle, Ellipse, RoundRect, Chord, and Pie, have parameters that specify the coordinates of a "bounding box" into which the figure is drawn. Windows draws the figure up to, but not including, the right and bottom coordinates. MORE INFORMATIONSuppose the following call is made:
Assuming that the device context is using the MM_TEXT mapping mode (in
which case logical units map directly to physical pixels), the
resulting rectangle will be 4 pixels wide and 2 pixels tall. The
following diagram shows which pixels are affected:
It may be helpful to think of the display as a grid, with each pixel
contained in a grid cell. The X1, Y1, X2, and Y2 parameters to the
Rectangle function specify an imaginary "bounding box" drawn on the
grid. The rectangle is drawn within the bounding box.
The height, width, and area of the resulting rectangle have the following useful properties:
Additional query words: 3.00 3.10 3.50 4.00 win16sdk
Keywords : kbNTOS350 kbNTOS351 kbNTOS400 kbWinOS95 kbSDKWin16 |
Last Reviewed: June 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |