|
|
|
|
Creating a VolatileImage from a WritableRaster?
Posted:
Nov 10, 2008 5:12 PM
|
|
|
Is there a way to construct a volatile image from a writable raster? How?
-- And loving it,
-Qu0ll (Rare, not extinct) _________________________________________________ Qu0llSixFour@gmail.com [Replace the "SixFour" with numbers to email me]
|
|
|
|
|
|
|
Re: Creating a VolatileImage from a WritableRaster?
Posted:
Nov 10, 2008 9:46 PM
in response to: qu0ll
|
|
|
Create a BufferedImage from that raster, and copy it to a VolatileImage of appropriate size. You'll have to update the image every time the raster changes though.
It may be better just using the BufferedImage - although that depends on what you're trying to do.
Dmitri
|
|
|
|
|
|
|
|
Re: Creating a VolatileImage from a WritableRaster?
Posted:
Nov 10, 2008 9:55 PM
in response to: trembovetski
|
|
|
Hi Dmitri,
Thanks for the tip, but how do I copy a BufferedImage into a VolatileImage?
-- And loving it,
-Qu0ll (Rare, not extinct) _________________________________________________ Qu0llSixFour@gmail.com [Replace the "SixFour" with numbers to email me]
|
|
|
|
|
|
|
|
Re: Creating a VolatileImage from a WritableRaster?
Posted:
Nov 11, 2008 8:38 AM
in response to: qu0ll
|
|
|
volatileImg.getGraphics().drawImage(buffImg....)
|
|
|
|
|
|
|
|
Re: Creating a VolatileImage from a WritableRaster?
Posted:
Nov 11, 2008 10:37 AM
in response to: linuxhippy
|
|
|
Ah yes thanks, sorry about the dopey question.
-- And loving it,
-Qu0ll (Rare, not extinct) _________________________________________________ Qu0llSixFour@gmail.com [Replace the "SixFour" with numbers to email me]
|
|
|
|
|