As i paint any figure in Java, the lines don't look smooth and I clearly see pixels. Any not very difficult solutions?
kolibrizas
12
Junior Poster in Training
Recommended Answers
Jump to PostCast your Graphics reference to Graphics2D and turn on anti-aliasing:
Graphics2D g2D = (Graphics2D)g; g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
All 2 Replies
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
kolibrizas
commented:
That really solves my issue!
+1
kolibrizas
12
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.