Hi Renaud,
If you know what you are doing, you can construct a DataBuffer with
the array. For instance,
new DataBufferInt(yourData, yourDataSize)
Then you can create a Raster that uses the DataBuffer and a ColorModel
to create a BufferedImage.
jeannette
> MIME-Version: 1.0
> Date: Tue, 28 Sep 1999 00:32:23 +0200
> From: CAZOULAT Renaud CNET/DIH/REN <[EMAIL PROTECTED]>
> Subject: [JAVA2D] Fast data copy
> To: [EMAIL PROTECTED]
>
> Hi,
>
> Does someone know if there is a mean to set new data in a buffer *without*
> data
> copying ? (i.e. by reference).
> The BufferedImage.setRGB as well as the BufferedImage.getRaster().setPixels
> seems
> to copy the data even if the colormodel and the data types are the same.
>
> renaud cazoulat
>
> ===========================================================================
> 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".