Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Anti-Aliasing

Posted on 2006-06-23
3
Medium Priority
?
335 Views
Last Modified: 2010-03-31
How do I anti-alias a line using Grahics2D?
0
Comment
Question by:jtgraphic
  • 2
3 Comments
 
LVL 25

Accepted Solution

by:
InteractiveMind earned 2000 total points
ID: 16972472
Try:

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

Author Comment

by:jtgraphic
ID: 16972526
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
 
LVL 25

Expert Comment

by:InteractiveMind
ID: 16972541
Oops, sorry :)

Thanks !
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question