ImageEn, unit iexColorPalette |
|
TIEColorPalette.SaveToFile
Declaration
procedure SaveToFile(const FileName: TFileName; Truncate: Boolean);
Description
Saves the current
colors to file in JASC Palette format (*.pal, *.psppalette).
If
Truncate is true, then only the first 256 colors of the palette are output.
Note: The JASC Palette format supports only 256 colors. If Truncate is set to false the created format may be incompatible with other applications.
// Prompt user to save colors to a palette file
if SaveDialog1.Execute then
try
ColorPalette1.LoadFromFile( SaveDialog1.Filename, False );
except
ShowMessage( 'File saving failed!' );
end;
See Also
◼SavePaletteToFile
◼LoadFromFile