ImageEn, unit iexBitmaps

TIOParams.ColorMap

TIOParams.ColorMap


Declaration

property ColorMap: PRGBROW;


Description

Returns the color map of the current image.

Note: Not all image types have a valid colormap (in which case ColorMap will be nil).

See also: ColorMapCount


Example

// Show the palette of the file "myfile.gif"
var
  palDlg : TImageEnPaletteDialog;
begin
  ImageEnView1.IO.LoadFromFile('C:\myfile.gif');
  palDlg := TImageEnPaletteDialog.Create(self);
  palDlg.SetPalette(ImageEnView1.IO.Params.ColorMap^, ImageEnView1.IO.Params.ColorMapCount);
  palDlg.Execute;
  palDlg.free;
end;

// Show the palette of the file "myfile.gif"
ImageEnView1.IO.LoadFromFile('C:\myfile.gif');
IEPromptForColor( aColor, ImageEnView1.IO.Params.ColorMap^, ImageEnView1.IO.Params.ColorMapCount );