painting graphics
Is there any sort of antialiasing I can set when drawing shapes with Graphics2D?
[80 byte] By [
Phaelax] at [2007-11-11 7:50:11]

# 1 Re: painting graphics
In the Graphics2D (http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Graphics2D.html) class there's a method setRenderingHint(RenderingHints.Key, Object) (http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Graphics2D.html#setRenderingHint(java.awt.RenderingHints.Key,%20java.lang.Object)). You'll also want to look at the RenderingHints API (http://java.sun.com/j2se/1.5.0/docs/api/java/awt/RenderingHints.html).
You might also find this link (http://www.leepoint.net/notes-java/GUI-lowlevel/graphics/graphics2D/65aliasing.html) useful.
PS. Google: antialiasing java (http://www.google.com/search?client=safari&rls=en&q=antialiasing+java&ie=UTF-8&oe=UTF-8)
destin at 2007-11-11 22:37:11 >

# 2 Re: painting graphics
Perfect, exactly what I needed.
I asked Google many things early this morning. Don't know why I didn't this time.