Declaration
procedure SaveToStream(Stream: TStream; FileFormat: TIOFileType; SelectedOnly: Boolean = False);
Description
Save all images in the attached
TImageEnMView or
TIEMultiBitmap to a multi-image format: GIF, TIFF, DCX, ICO, AVI, DICOM, PDF or PS.
You must specify a
file format, which should be one of: ioGIF, ioTIFF, ioPS, ioPDF, ioDICOM, ioDCX, ioICO, ioUnknown (if ioUnknown is specified, the current file type is used if it is a multi-image format).
If
SelectedOnly = True and the component is attached to a
TImageEnMView then only the selected images are output to file.
Note:
◼Only multi-frame formats are supported. Saving to a single frame format, such as JPEG, will result in an error (
Aborting will return true). To save single frames of a TImageEnMView you can use
SaveToFile for the relevant frame
◼If an internal save error is encountered
Aborting will return true. Saving issues due to insufficient write permissions and disk write failures will raise an exception
◼To abort while saving set
Aborting to true
◼Saving to stream is
not supported for AVI