ImageEn, unit iexHelperFunctions

TImageEnIO.SaveToStreamEx

TImageEnIO.SaveToStreamEx


Declaration


function SaveToStreamEx(Stream: TStream; FileType: TIOFileType; JpegQuality: integer = 0): Boolean;


Description


Calls SaveToStream, optionally setting JPEG_Quality.
You must specify the file format.
Returns True if saving was successful, or False on error


Example


// Save the image to MyImage.jpeg at 90% quality
ImageEnView1.IO.SaveToStreamEx( DestStream, ioJPEG, 90 );