TImageEnMView.GetImageToStream
Declaration
procedure GetImageToStream(idx: Integer; Stream: TStream; ImageFormat: TIOFileType);
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) |
// Save the first image to a stream in JPEG format (at 80% quality)
ImageEnMView1.MIO.Params[0].JPEG_Quality := 80;
ImageEnMView1.GetImageToFile(0, MyStream, ioJPEG);