Re: [JAVA2D] Convert THREE 16 bit shorts for RGB to ONE 32bit RGB representation...

2002-11-11 Thread Jim Graham
Square root will give you a non-linear translation into the destination space. Also, adding 32768 will mean that 32767 or 0x7fff will map to full intensity, 0 will map to half intensity, and -32768 will map to blackness - is that the mapping you want? If you want to convert a signed short

[JAVA2D] Convert THREE 16 bit shorts for RGB to ONE 32bit RGB representation...

2002-11-05 Thread Kevin Kim
Hi, all. I have 224 matrixes each of which is consisted of h by w Short, 16 Signed bit pixel loaded into memory. Among these 224 matrix, I amselecting three matrixes tomap into RGB value. My understanding was that since I have a range from-32767 to 32767 for each R, G, B, I presumed, I