ImageEn, unit iexBitmaps

TIEMultiBitmap.SaveToStream

TIEMultiBitmap.SaveToStream

Declaration

function SaveToStream(Stream: TStream; FileType: TIOFileType): Boolean;

Description

Save an image to a stream (including all its frames) to any format supported by the TImageEnMIO class.
FileType specifies the image format to save the image. You must specify a valid format (not ioUnknown).

Returns True on success.

Note:
Alternatively, you can use the saving methods of MIO
For legacy reasons, SaveToStream() is an alias of Write()

Example

if multiBitmap.SaveToStream( ms ) then
  ShowMessage('Save OK');

See Also

SaveToFile
LoadFromFile
MIO