ImageEn, unit imageenio

TImageEnIO.SaveToStreamWIC

TImageEnIO.SaveToStreamWIC


Declaration

procedure SaveToStreamWIC(Stream: TStream; FileFormat: TIOFileType);


Description

Saves the current image to a stream using TIEWICWriter.
Set FileFormat to a WIC supported encoder, e.g. ioDDS or ioJPEG

Note:
Relevant formats can saved losslessly by enabling HDP_Lossless. Otherwise the quality can be specified using HDP_ImageQuality
Some WIC formats require installation of a codec from the Microsoft store
See WIC_Save_FileTypes for a list of WIC supported saving types
To abort while saving set Aborting to true


Examples

// Save an image to a DirectDraw Surface stream using WIC
ImageEnView1.IO.SaveToStreamWIC( fs, ioDDS );

// Save an image to a JPEG stream using WIC
ImageEnView1.IO.SaveToStreamWIC( fs, ioJPEG );


See Also

SaveToFileWIC
LoadFromStreamWIC
WIC_Save_FileTypes