I use a 8bit format DIB TBitmap and set a 256 color palette.
I store data in the bitmap using the vector returned from ScanLine().
My data are levels of gray.
When I change the palette, the data stored is changed by TBitmap
automatically, but I need to have back the original levels.
The new palette is a 16 level of gray spanned over 256 color index. It
seems that TBitmap translate our data in 16 index.
How we can leave unchanged our bitmap changing the associated palette?
I have to create a dib HBITMAP and use all the API of windows instead