ImageEn, unit imageenio

TImageEnIO.SaveToFileBMP

TImageEnIO.SaveToFileBMP


Declaration

procedure SaveToFileBMP(const FileName: WideString);


Description

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

Notes:
- 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 compressed bitmap bitmap
ImageEnView1.IO.Params.BitsPerSample := 8;
ImageEnView1.IO.Params.SamplesPerPixel := 1;
ImageEnView1.IO.Params.BMP_Compression := ioBMP_RLE;
ImageEnView1.IO.SaveToFile('D:\Italy.bmp');