Saves the current image to a file in PNG 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 ◼You can use SyncAlphaChannel to optimize the file before saving (by removing any content that is hidden by the alpha channel)
// Set best compression ImageEnView1.IO.Params.PNG_Filter := ioPNG_FILTER_PAETH; ImageEnView1.IO.Params.PNG_Compression := 9; // Save PNG ImageEnView1.IO.SaveToFilePNG('D:\max.png');