ImageEn, unit imageenio

TImageEnIO.SaveToStreamPNG

TImageEnIO.SaveToStreamPNG


Declaration

procedure SaveToStreamPNG(Stream: TStream);


Description

Saves the current image to a stream in PNG format.



Example

// Set best compression
ImageEnView1.IO.Params.PNG_Filter := ioPNG_FILTER_PAETH;
ImageEnView1.IO.Params.PNG_Compression := 9;
// Save PNG
ImageEnView1.IO.SaveToStreamPNG(Stream);