TImageEnIO.SaveToStreamWebP
Declaration
procedure SaveToStreamWebP(Stream: TStream);
Description
Saves the current image to a stream in WebP format.
The method used to save WebP files is specified by
ActiveWebPEngine.
To save the image losslessly, set
HDP_Lossless to true. Otherwise, specify the level of compression using
HDP_ImageQuality.
Note:
◼For
ImageMagick Plug-In, use a
Dictionary to specify quality options
◼To abort while saving set
Aborting to true
// Save an image to a lossless WebP
ImageEnView1.IO.Params.HDP_Lossless := True;
ImageEnView1.IO.SaveToStreamWebP( fs );
See Also
◼SaveToFileWebP◼LoadFromStreamWebP