TImageEnIO.SaveToStreamTIFF
Declaration
procedure SaveToStreamTIFF(Stream: TStream);
Description
Saves the current image to a stream in TIFF format.
Note:
◼If
StreamHeaders property is True, it adds an additional special header as needed for multi-image streams.
◼To abort while saving set
Aborting to true
// Saves ImageEnView1 and ImageEnView2 attached images in file images.dat
// images.dat isn't loadable with LoadFromFileXXX methods
var
fs: TFileStream;
Begin
fs := TFileStream.Create('bmpimages.dat', fmCreate);
ImageEnView1.IO.StreamHeaders := True;
ImageEnView1.IO.SaveToStreamTIFF(fs);
ImageEnView2.IO.StreamHeaders := True;
ImageEnView2.IO.SaveToStreamTIFF(fs);
fs.free;
End;
// Saves a single image in image.tif
// image.tif is loadable with LoadFromFileXXX methods
var
fs: TFileStream;
Begin
fs := TFileStream.Create('image.tif');
ImageEnView1.IO.StreamHeaders := False;
ImageEnView1.IO.SaveToFileTIFF(fs);
End;
See Also
◼SaveToFileTIFF
◼LoadFromStreamTIFF
◼InsertToStreamTIFF
◼ReplaceStreamTIFF
◼TIFF_ImageIndex
◼TIFF_ImageCount
◼Global Image Methods