ImageEn, unit iexBitmaps

TIEMultiBitmap.GetImageToStream

TIEMultiBitmap.GetImageToStream


Declaration

procedure GetImageToStream(idx: Integer; Stream: TStream; ImageFormat: TIOFileType; IOParams: TIOParams = nil);


Description

Saves the image at index, idx, to a stream.

Parameter Description
idx The image index (Where 0 is the first image)
Stream The destination stream
ImageFormat The output file format (e.g. ioTiff or ioJpeg)
Params The save parameters


Example

// Save the first image to a stream in JPEG format
MBitmap.GetImageToFile(0, MyStream, ioJPEG);