Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Borland > 256 color palet...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 1033 of 1102
Post > Topic >>

256 color palette problems!

by theunsheydenrych@[EMAIL PROTECTED] Jun 5, 2007 at 07:44 AM

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.




 2 Posts in Topic:
256 color palette problems!
theunsheydenrych@[EMAIL P  2007-06-05 07:44:49 
Re: 256 color palette problems!
"Jochen" <jo  2007-06-05 17:27:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 0:15:03 CDT 2008.