TImageEnMView.GetImageToStream
Declaration
procedure GetImageToStream(Index: Integer; Stream: TStream; SaveToType: TIOFileType);
Description
Saves the image at
Index, to a stream.
| Parameter | Description |
| Index | The image index (Where 0 is the first image) |
| Stream | The destination stream |
| SaveToType | The output file format for the image (e.g. ioTIFF or ioJPEG) |
Example
// 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);