Hello, load the image using:
ImageEnView1.LegacyBitmap := false; ImageEnView1.IO.NativePixelFormat := true; ImageEnView1.IO.LoadFromFile('input.bmp');
Now you have a pure 8 bits per pixels paletted image. You can access color indices with: index := ImageEnView1.IO.IEBitmap.Pixels_ie8[col, row];
The color palette is in ImageEnView1.IO.IEBitmap.Palette[] array.
|