Help with in reading 16 bits BMP image file

Posted by Wang, Liqin on
URL: http://imagej.273.s1.nabble.com/Help-with-in-reading-16-bits-BMP-image-file-tp5002154.html

Hi, May I get a help to read 16 bits RGB bmp file?

Here are some info:

nsize = 27970
nbisize = 8388608
width = 128
height = 109
nplanes = 1
nbitcount = 16
ncompression =3
nsizeimage =  27904

X pixels per Meter = 0;
 Y pixel per meter = 0
Colors in Color table = 3;
Important color  count = 3;

The above data are from 40 bytes of he header

I think I need to read R, G, B , alpha channel bitmask from the header ???

I basically want to convert this image into 24 RGB.

Thanks for your helps.

Liqin




--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html