Hello Rob,
I'm assuming you're already running with headless toolkit (because
you're getting the HeadlessException).
You can use java.awt.image.BufferedImage class to create images in
headless environment, and javax.imageio package to read/write
images.
Thank you,
Dmitri
On Wed, Aug 11, 2004 at 11:41:25AM -0700, Rob Ross wrote:
> I want to create an Image from "scratch", get its graphics, draw into
> it, then use the Image to create a Jpeg.
>
> I can do all of this on a client JVM, but I have never tried this on
> the server side, and now I'm running into HeadlessExceptions.
>
> I vaguely recall that Java 1.4 provided some way to create images even
> in a headless environment, and I hope my memory is correct.
>
> What's the proper way to do this?
>
> Thanks!
>
>
> Rob Ross, Senior Software Engineer
> E! Networks
> [EMAIL PROTECTED]
> "Beware of he who would deny you access to information, for in his
> heart he dreams himself your master." -- Commissioner Pravin Lal
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".