The information in this article applies to:
SYMPTOMSThe outline of a Pie() slice may not be completely smooth. CAUSEWindows calculates the Pie() center using device points. Round-off errors, especially in mapping modes other than MM_TEXT, can put the center of the pie off center, resulting in a slightly "crinkly" pie slice. RESOLUTION
The bounding rectangle of the Pie() function includes the top left
coordinates (X1,Y1) but not the bottom right coordinates (X2,Y2). Adding
1 to X2 and Y2 makes the real extent even, and therefore the radius can be
nicely placed. But this method works on the screen only in the default
MM_TEXT mode. If you change the mapping of the device context to some high
resolution mode, such as MM_HIENGLISH or MM_TWIPS, the center again goes
off 1 by pixel and you get slightly crinkly pie slices.
STATUSMicrosoft has confirmed this to be a bug in Windows versions 3.0 and 3.1. Additional query words: buglist3.00 buglist3.10 3.00 3.10
Keywords : kbSDKWin16 |
Last Reviewed: June 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |