All anti-alaising is is blending the rough edges so that it looks cleaner from
a distance.

All you have to do is take the pixles on the imediate outer edge of the text
and blur it.  The easiest way is to probably change that pixel to an average of
what color it was and the color of the text.  If you want to get really fancy
you can take an average of the 8 pixels around it which I believe is more
generally the case.  The more pixles you change the more blury a picture gets
but for high res images it looks alot smoother.

The hardest part is knowing exactly where the pixles are.  You can either just
scan for the text color or do some funky math tricks to pull it out.

Hope this helps.

Matt

Quoting Robert Koberg <[EMAIL PROTECTED]>:

> Hello,
>
> I am trying to output a gif from a servlet. All is working fine except
> I
> can't find out how to anti-alias the text to give a smooth rather than
> jaggie appearance.  I have basically used example code from O'Reilly's
> java
> servlet book.
>
> How do you anti-alias?
>
> Thanks,
> Rob
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to