Without seeing exactly waht is going on, and not having your code in front of me, is there some other component that may somehow be interfering? I can't think of anything else right off hand, and I guess I can't think of ever having run into that particular problem before. I have had weird things happen with graphics when I tried to stuff them into a space where they wouldn't fit properly, and java resized them for me.
I know, not much help...sorry.
<a href="http://www.security-forums.com/forum/viewforum.php?f=48" target="_blank" rel="nofollow">Malware Removal</a> - Get your system running like new again.
Joined: Feb 25, 2003
The curves will likely look fine to the naked eye, but if you scale the drawings (in MS Paint, or some other graphical program) you'll see the imperfection -- they are quite asymetrical. Varying the width and/or arcsize makes a little difference, but the result is still asymmetrical.
Originally posted by Dan Bizman: The curves will likely look fine to the naked eye
Well, there you go. Good enough is good enough, right? Besides, I ran your program and the rounded corners are defined by the placement of two or three pixels each -- how much more accurate could they be?
Scaling up bitmapped graphics always looks lousy -- that's why there are vector formats like SVG and PostScript.