Hello,
The code that I am using:
// Load images in native format
ImageEnView1.IO.NativePixelFormat := true;
with ImageEnView1.IO do
LoadFromFileAuto( ExecuteOpenDialog());
// if the bitmap is not 8 bit paletted then convert it
if ImageEnView1.IEBitmap.PixelFormat <> ie8p then
ImageEnView1.IEBitmap.PixelFormat := ie8p;
//Build the Palette
IEColorPalette1.AssignPalette( ImageEnView1 );
I also tried out: CalcImagePalette
But the result is the same.
TIA
Yogi Yang