[Gdal-dev] 1 and 4 bits image

Andrey Kiselev dron at ak4719.spb.edu
Wed Apr 30 14:13:53 EDT 2003


Silvain,

On Wed, Apr 30, 2003 at 10:49:07AM -0400, Sylvain Rioux wrote:
> I am having trouble with 16-colors bitmaps (4 bits) and i was wondering at
> how GDAL manages this format. I get a bitmap where the pixels values seem to
> have been slighly shifted and the result is far from what i expected. This
> problem does also occur with monochrome bitmaps. So far i successfully read
> 256 colors bitmaps and, gifs, jpegs, and the other raster formats supported
> by GDAL.It seems clear to me that the fact that the pixels are defined on 1
> or 4 bits rather than a byte causes this misalignment.

What file format do you mean as a ``bitmap''? MS Windows BMP?


-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517



More information about the Gdal-dev mailing list