May 16, 2008

Awt Generalpath Curveto - Kind of pixelated.

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > Java, Java Servlets, Java Script, & JSP

free web hosting

Awt Generalpath Curveto - Kind of pixelated.

hippiman
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 tongue.gif

If you can help, I'd appreciate it.

Reply

howardh
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

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. curveto - 8.86 hr back.
  2. java generalpath curveto - 27.46 hr back.
  3. estimating flash curveto - 45.61 hr back.
  4. generalpath curveto sample code - 79.61 hr back.
  5. smooth curves curveto - 268.37 hr back.
  6. curveto flash pixelated - 289.07 hr back.
  7. generalpath picture - 343.38 hr back.
Similar Topics

Keywords : awt generalpath curveto pixelated


    Looking for awt, generalpath, curveto, kind, pixelated,

Searching Video's for awt, generalpath, curveto, kind, pixelated,
advertisement



Awt Generalpath Curveto - Kind of pixelated.



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE