ImageEn, unit imageenio

TImageEnIO.SaveToFileJpeg

TImageEnIO.SaveToFileJpeg


Declaration

procedure SaveToFileJpeg(const FileName: WideString);


Description

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


Note:
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 gray levels, progressive jpeg image with quality 70
ImageEnView1.IO.Params.JPEG_ColorSpace := ioJPEG_GRAYLEV;
ImageEnView1.IO.Params.JPEG_Quality := 70;
ImageEnView1.IO.Params.JPEG_Progressive := True;
ImageEnView1.IO.SaveToFileJpeg('C:\image.jpg');