ImageEn, unit iexBitmaps

InsertTIFFImageFile


Declaration

procedure InsertTIFFImageFile(const SourceFileName, InsertingFileName, OutFileName: WideString; idx: Integer); overload;
procedure InsertTIFFImageFile(const FileName, InsertingFileName: WideString; idx: Integer); overload;


Description

Inserts the file InsertingFileName into SourceFileName, saving the result to OutFileName.
Idx is the page where to insert the file.
InsertingFileName can be any supported image type. If it is not a TIFF it will be converted automatically.
As both source and destination images are not de-compressed the operation is very quick.

Second overload allows you to modify an existing file.

Note:
Both files must have the same byte order. You can check it reading image parameters and checking TIFF_ByteOrder property
It is much faster to use InsertToFileTIFF, but InsertToFileTIFF only supports Intel Byte Order
Raises an exception on failure


Example

// this inserts pagetoinsert.tif in old.tif as first page and save all to new.tif
InsertingTIFFImageFile( 'D:\old.tif' , 'D:\pagetoinsert.tif', 'D:\new.tif', 0 );


See Also

InsertTIFFImageStream
EnumTIFFIm (Image Count)
DeleteTIFFImGroup
DeleteTIFFIm
ExtractTIFFImageFile
Global Image Methods
LoadFromFileTIFF
InsertToFileTIFF
ReplaceFileTIFF
SaveToFileTIFF