HI
I have problems with the last palette entry in a BMP i am creating.
Want i do is break a Geotiff file up in lots of smaller BMP's , I get
the colors for the palette from GDAL software that can extract the
color table for me from the GeoTiff. I then create a logical palette
from these colors , and give it to the bitmap , the populate the
bitmaps canvas , then save it. But every time the last entry [255] in
the palette is not the same as the color entry i got from the GeoTiff.
I used GetPaletteEntries with the changed Bitmap to compare the values
in the changed bitmap's palette to the color table from the GeoTiff ,
they are all the same except the last entry.
If i open the tiff file in PhotoImpact i can inspect the values for
the last entry in the palette , and also the last entry in the newly
saved bmp , they are not the same !?
I am using Delphi 7 on XP.
I also tried to set the last entry with SetDIBColorTable but no
change.
The Pixelformat is set to pf8Bit.Is there something special about the
last entry of the palette in a 256 color bitmap?
Could somebody please advise me what to to next.
It would be greatly appreciated.


|