TImageEnIO.SaveToStreamPNG
Declaration
procedure SaveToStreamPNG(Stream: TStream);
Description
Saves the current image to a stream in PNG format.
// Set best compression
ImageEnView1.IO.Params.PNG_Filter := ioPNG_FILTER_PAETH;
ImageEnView1.IO.Params.PNG_Compression := 9;
// Save PNG
ImageEnView1.IO.SaveToStreamPNG(Stream);