Thanks,
you must have missed my original post. I said I was trying to anti-alias
text for a gif file that is used in a servlet.
Like so:
<img src="/servlet/ImageGenerator?a=b&c=d">
I am using the ACME gif encoder.
----- Original Message -----
From: "Mark Galbreath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 4:55 PM
Subject: Re: Anti-Aliasing
> What sort of anti-aliasing? Character-glyph? Lines? 3D-surfaces?
> They're
> very different.
>
> The Graphics2D class has support for anti-aliasing renderers.
> This doesn't
> mean that you'll necessarily get one on a given VM
> implementation. My guess
> is (though I haven't verified) that the Sun VM does support it
> for on-screen
> graphics. I have no idea how much support would be there for
> other renderers
> (printers, or 3rd-party tools like PDF-renderers).
>
> // Draw anti-aliased line...
> public void paint( Graphics _g) {
> Graphics2D g = ( Graphics2D) _g;
> g.setRenderingHint( RenderingHints.KEY_ANTIALIASING,
> RenderingHints.VALUE_ANTIALIASING_ON);
> // All drawing now anti-aliased (if renderer supports it...)
> Dimension size = getSize();
> g.drawLine( 0, 0, size.width, size.height);
> }
>
> Cheers!
> Mark
>
>
___________________________________________________________________________
> 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