I've never used a VolatileImage in my code. The only API I can
see for you to use is createGraphics() to get a Graphics2D, followed
by drawing your Raster back onto the VolatileImage. To draw the
Raster you need to create a BufferedImage from it, and then call
Graphics2D.drawImage().

However, I have no idea if that's how VolatileImage is really meant
to be used... so you should test and be careful. 

> -----Original Message-----
> From: Discussion list for Java 2D API 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED]
> Sent: Tuesday, November 20, 2007 9:50 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA2D] Saving & restoring a region of a VolatileImage
> 
> OK, thanks for that Mike.  But how then do I get the 
> WritableRaster back into the VolatileImage when I come to 
> restore the region?
> 
> --
> And loving it,
> 
> -Q
> _________________________________________________
> [EMAIL PROTECTED]
> (Replace the "SixFour" with numbers to email me) [Message 
> sent by forum member 'qu0ll' (qu0ll)]
> 
> http://forums.java.net/jive/thread.jspa?messageID=246324
> 
> ==============================================================
> =============
> 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".

Reply via email to