Anti-Aliasing

How do I anti-alias a line using Grahics2D?
jtgraphicAsked:
Who is Participating?
 
InteractiveMindConnect With a Mentor Commented:
Try:

myGraphics2DInstance.setRenderingHint( RenderingHints.Key.KEY_ANTIALIASING, VALUE_ANTIALIAS_ON ) ;
0
 
jtgraphicAuthor Commented:
You made a typo. That should have been,

myGraphics2DInstance.setRenderingHint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON ) ;

but once I changed that it worked!

Thanks alot!
0
 
InteractiveMindCommented:
Oops, sorry :)

Thanks !
0
All Courses

From novice to tech pro — start learning today.