Solved

Anti-Aliasing

Posted on 2006-06-23
3
302 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 500 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

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 Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

809 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