Hello Oliver,

I think what you want to do is render some stuff with
a Graphics2D and save the results. You can do this by
rendering into an image and then using the JPEG
encoders to save the image. In fact, it's described here:

  http://www.javaworld.com/jw-01-1999/jw-01-media.html#sidebar1

Scroll down to the saveComponentAsJPEG() sample code,
which is what you're interested in.

I hope this helps.

Jonathan

At 08:39 AM 3/19/99 +0100, Krautgartner, Oliver wrote:
>Hello--
>
>does anyone know how to convert a Graphics2D-Object directly to a JPEG-File?
>The existing converters work with Image-Objects, but i am looking for an
>encoder, that works directly with the Graphics2D-Object.
>
>Oliver

Java 2D Graphics: http://www.oreilly.com/catalog/java2d/
Java Cryptography: http://www.oreilly.com/catalog/javacrypt/
Bite-Size Java: http://java.oreilly.com/news/knudsen/
O'Reilly's Java Center: http://java.oreilly.com/

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/

Reply via email to