What is the correct way to manipulate image data using the new VolatileImage class and 
backbuffering?

I have a rendering loop where I am compositing multiple static images to a single back 
buffer image. I then want to make one or more passes manipulating the back buffer 
pixel data.

What is the correct way to do this to maintain hardware acceleration? There does not 
seem to be any way for me to get a hold of the image data if the backbuffer is a 
VolatileImage. Should there be a way to do this using the new jni ByteBuffer class?

I have tried to do this using createImage() to create a staging buffer, modify the 
staging buffers pixel, and then blitting this buffer to the backbuffer. However as 
soon as I call getRaster() on the staging buffer my frame rate plummets. I also really 
don't want to manipulate the data on the Java heap, but on the C heap intead.

Any information would be appreciated.

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