ImageEn, unit ieMIO

TImageEnMIO.SaveToStream

TImageEnMIO.SaveToStream

Declaration

procedure SaveToStream(Stream: TStream; FileType: 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.
FileType specifies the file format to use for saving the image, which must be one of: ioGIF, ioTIFF, ioPS, ioPDF, ioDICOM, ioDCX, ioICO, ioUnknown. If ioUnknown is specified, the current file type is used (assuming 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