ImageEn, unit imageenio

TImageEnIO.InsertToStreamTIFF

TImageEnIO.InsertToStreamTIFF


Declaration

function InsertToStreamTIFF(Stream: TStream): integer;


Description

Insert the current image into a TIFF stream at position specified by ImageIndex. The stream position must be at the beginning.
Returns the number of images inside the file after the insertion, or 0 on failure.

Note:
Only Intel Byte Order is supported (TIFF_ByteOrder=ioLittleEndian). If the stream is Big-Endian, the method will fail with the result of 0. To support ioBigEndian, use InsertTIFFImageStream.
InsertToStreamTIFF is much faster than InsertTIFFImageStream, but only supports Intel Byte Order (TIFF_ByteOrder=ioLittleEndian)


Example

ImageEnView1.IO.Params.ImageIndex := 1;  // prepare to insert as second image
ImageEnView1.IO.InsertToStreamTIFF(outstream);


See Also

InsertToFileTIFF
LoadFromStreamTIFF
SaveToStreamTIFF
ReplaceStreamTIFF
TIFF_ImageIndex
TIFF_ImageCount
InsertTIFFImageStream
Global Image Methods