Create an appropriate BufferedImage, get a Graphics2D from it using
createGraphics(), draw the shape with draw(Shape), and write the image with
javax.imageio.ImageIO.write().

Brian

On Thu, 21 Aug 2003, Sailaja Nori wrote:

> HI,
>
> Im a new entry here, and was wonderig if i could get some help regarding
> images. Im working on an application which draws faces and evolves them. The
> faces are instances of a Face class which implements Shape, and are drawn
> using
> GeneralPath objects . I would like to save and open these faces into a
> directory, as images. Can someone tell me how best I can do this, and its
> urgent!
>
> Thanx in advance,
>
> Sailaja
>
> _________________________________________________________________
> Australia ahoy! Fly there for free.
> http://www.australia.singaporeair.com/en/contest_main.asp On Singapore
> Airlines!
>
> ===========================================================================
> 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".
>


***************************************
SunNetwork 2003 Conference and Pavilion
"An unparalleled event in network computing! Make the net work for you!"

WHEN:  September 16-18, 2003
WHERE: Moscone Center, San Francisco

For more information or to register for the conference, please visit:
http://www.sun.com/sunnetwork

===========================================================================
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".

Reply via email to