The fastest way to do what you want is to create a BufferedImage that
has an IndexColorModel.  When you change the window/level, create a new
lut and store it in a new IndexColorModel and then create a new BufferedImage
with the same Raster as before and this new IndexColorModel.

jeannette

> MIME-Version: 1.0
> Date: Thu, 22 Feb 2001 13:27:02 +0100
> From: Cyrille Duret <[EMAIL PROTECTED]>
> Subject: [JAVA2D] Display performances...
> To: [EMAIL PROTECTED]
>
> hello world !
> I'm working on an applet wich must be able to display 16 bits grey images
> with direct action (windowing with 2 sliders) LUT modification by the user.
> This is the modification process if the user change the visualisation
> windowing:
>
> 16 bits image => 16 bits LUT => 16 bits image to be displayed
>
> I have produced a prototype but the refresh speed of the image is not
> acceptable :
> I have modified my code to compute my 16 bits image with a 8 bits LUT, thus
> the process produce 8 bits image to be displayed instead of 16 bits ones.
> diagram:
> 16 bits image => 8 bits LUT => 8 bits image to be displayed
>
> Performances have been hardly improved..
>
> I use Graphics 2D paint() methods for display my image.
>
> What is the fastest way for display images with drawImage ( ) ??
> Is there any optimisations in order to obtain better results..
>
>
> thanx a lot
>
> ===========================================================================
> 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