PRB: Picture.Circle Works Incorrectly When the Radius is Very Large and the Angle is Very Small (215336)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q215336 SYMPTOMS
The Circle method of the PictureBox works incorrectly while drawing an arc with a very large radius and a very small angle. On Windows 2000 or Windows NT you may get a distorted arc. On Windows 95 or Windows Me you may get nothing.
CAUSE
In Visual Basic, the Circle method of the PictureBox calls the Arc API. The problem occurs because the Arc API works incorrectly when the radius is very large and the angle is very small.
RESOLUTION
To work around this problem, you need to implement your own Arc function in Visual Basic or C. Usually the C function provides better performance.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbAPI kbGDI kbprb KB215336 |
---|
|