|
|
|
|
![]() ![]() |
Feb 29 2008, 11:54 PM
Post
#1
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 150 Joined: 9-April 07 From: Nebraska Member No.: 41,301 |
I've been trying to make an applet to draw things, and I just started looking into it, and I realized with GeneralPath's curveTo function, it looks kind of pixelated. I'm not sure if it's the AWT image, or if it's the way curveTo works.
I've tried drawing the curve to a bigger image, then drawing that image on a smaller image, and that didn't really help. It just used up more memory for no reason. Then I found this thing about anti-aliasing, and that didn't help. What I'm looking for is a way to make curves that are as smooth as the curves in Flash. It's just the edges that are pixelated, but I'm not sure how to fix it. I was going to ask my brother, because he knows a lot about programming and Java, but he hasn't come over in a long time and I'm getting tired of waiting for him If you can help, I'd appreciate it. |
|
|
|
Mar 30 2008, 06:56 PM
Post
#2
|
|
|
Newbie ![]() Group: Members Posts: 4 Joined: 24-February 08 Member No.: 58,381 |
Anti-aliasing is supposed to blend the edges in with the background to prevent these jagged edges (aliasing). Enabling anti-aliasing should fix this problem. The curveTo method seems to work find with anti-aliasing.
http://www.javaworld.com/javaworld/jw-08-1...w-08-media.html This post has been edited by howardh: Mar 30 2008, 06:59 PM |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 8th October 2008 - 10:11 AM |