ImageEn, unit iexHelperFunctions

TIEBitmap.IESaveToStream

TIEBitmap.IESaveToStream


Declaration


function IESaveToStream(Stream: TStream; FileType: TIOFileType; JpegQuality : Integer; IOParams: TIOParams = nil): Boolean;


Description


Allows a TIEBitmap to save to any format supported by ImageEn. If you are saving to JPEG you can also specify the JPEG_Quality.
You must specify the file format.
You can optionally specify an TIOParams object containing the I/O parameters of the file.
Returns True if saving was successful, or False on error.


Example


// Save the image at 90% quality
MyIEBitmap.IESaveToStream(DestStream, ioJPEG, 90)