Solved

Anti-Aliasing

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

920 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now