Thanks, I will try it in a minute to see if it will work. This is my first
experience with Java2D, so I am still trying to understand it all exactly, the
construction of an image out of databuffers, samplemodels, rasters and
colormodels :-)
But from what I have understood from the docs, this will probably be it.
About my use for this:
I will have data (in a char array right now, but from what I understand it must
become a short array now) which is scaled from 0-65535 (16 bits) This is output
from different reconstruction programs. The user must be able to adjust the
intensity-thresholds of the image ( set minimum to be black and maximum to be
white, so standard value 0 will be black and value 65535 will be white, but
when the user want 16734 to be black I have to scale from 16734 to 65535)
This scaling of intensity must be done on all images, so therefore I can use
different IndexColorModels I believe. Right now in my JDK1.1.7 program I have
written a function to do this myself, but it is not too fast, and my most ugly
piece of code (it is also very big) I think I can make it fast and small (and
nice :-) by using Java2D
D�nis Riedijk