ImageEn, unit imageenio

TImageEnIO.SaveToFilePCX

TImageEnIO.SaveToFilePCX


Declaration

procedure SaveToFilePCX(const FileName: WideString);


Description

Saves the current image to a file in PCX format.
FileName is the file name including extension.

Notes:
- PCX only supports Bits-per-pixel (BitsPerSample * SamplesPerPixel) values of 1, 4, 8 or 24.
- If an internal save error is encountered Aborting will return true. Saving issues due to insufficient write permissions and disk write failures will raise an exception.
- To abort while saving set Aborting to true


Example

// Saves a 256 color PCX
ImageEnView1.IO.Params.BitsPerSample := 8;
ImageEnView1.IO.Params.SamplesPerPixel := 1;
ImageEnView1.IO.SaveToFilePCX('D:\image.pcx');