Jerome Post wrote:
> I have this image in a Buffered Image which I want to draw on, so I get the 
>Graphics2D component:
>
> BufferedImage nwBufferedImage = nwImageComp.getImage();
> Graphics2D nwGraphics2D = (Graphics2D) nwBufferedImage.getGraphics();
> nwGraphics2D.draw.......
>
> Which I draw on, but then I want to return the Graphics2D component to the existing 
>Buffered Image, but I don�t know how, anyone ??

No need to do anything with it.  The Graphics2D context is just a
view into the BufferedImage.  You can let it be discarded at the end
of its scope, or keep it around to use again.  Protocol suggests that
you dispose() it when you're done, but that's probably not important
for this type of graphics object.

---------------------------------------------------------------------
Kevin Weiner    FM Software    610-997-3930    http://www.fmsware.com

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