Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Round rects rendering



I'm writing an applications that does some custom painting and am getting not
very pleasing results with the 1.3.1 VM. More specifically,
Graphics.drawRoundRect() produces a rectangle with a faint line at the top, and
a thicker line at the bottom, and the rounded corners are splotchy.

With 1.4.2, things look wonderful, but I will have to support 1.3.1, so I'm
trying to figure out how to make the paiting look nice on 1.3.1.

Looking at the system properties, I see that
com.apple.macosx.AntiAliasedGraphicsOn is set to true by default, so I turned
that off. It does affect the painting, but it's not really better. Now I have no
line at all at the top of the rectangle, and the right side doesn't appear flat.

Is there any other trick to try to control the painting?

I also experiemented with com.apple.hwaccel, but that didn't seem to help.

Steve
--
Steve Roy <email@hidden>
Personal homepage: <http://homepage.mac.com/sroy>
Projects homepage: <http://www.roydesign.net>
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.