-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.1.3
-
x86
-
windows_95
Name: diC59631 Date: 09/05/97
Under certain conditions, drawArc (in class Graphics)
draws a circle instead of an arc. This happens
for small angles (1-3 degrees) which cross a
multiple of 90 degrees. The size of the bounding
rectangle is smaller than about 40 pixels.
In the following code, those statements marked OK
draw the arc correctly, whereas the rest draws a
circle (incorrect):
(g is an reference to a Graphics object)
g.drawArc(10, 10,20,20,179,1);
g.drawArc(50, 10,20,20,181,-1);
g.drawArc(100,10,20,20,359,1);
g.drawArc(150,10,20,20,0,-1);
g.drawArc(10, 50,20,20,60,1); //OK
g.drawArc(50, 50,20,20,89,1);
g.drawArc(100,50,20,20,150,1); //OK
g.drawArc(150,50,20,20,271,-1);
g.drawArc(10, 100,20,20,89,6); //OK
g.drawArc(50, 100,20,20,89,7); //OK
g.drawArc(100,100,20,20,89,8); //OK
g.drawArc(150,100,20,20,89,9); //OK
g.drawArc(10, 150,20,20,89,2);
g.drawArc(50, 150,20,20,89,3);
g.drawArc(100,150,20,20,89,4); //OK
g.drawArc(150,150,20,20,89,5); //OK
g.drawArc(10, 200,20,20,89,1);
g.drawArc(50, 200,40,20,89,1);
g.drawArc(150,200,60,20,89,1); //OK
g.drawArc(250,200,90,20,89,1); //OK
company - Information Technology Institute, Singapore , email - ###@###.###
======================================================================
- duplicates
-
JDK-4136042 In Graphics class drawArc() and fill3DRect() are not quite right
-
- Open
-