QPx_CreateMultipageTIFFFile
QPx_CreateMultipageTIFFFile(tiffFilePath; tiffFilePath; tiffFilePath; tiffFilePath; tiffFilePath):error | |||
---|---|---|---|
![]() |
tiffFilePath | Text | Full pathname to the output TIFF file |
![]() |
sourceImages | Array | Array of source images |
![]() |
tiffCompression | Longint | TIFF compression |
![]() |
tiffEndianess | Longint | TIFF endianess |
![]() |
optionFlags | Longint | Options |
![]() |
error | Longint | Error result |
Create a multi-page TIFF file from individual images
The output file is specified by tiffFilePath. The output file need not already exist, but its containing folder path must be valid. If tiffFilePath points to an existing file, the latter will be replaced by the new file. If tiffFilePath is empty, a file selection dialog is presented.
The input images are specified by the sourceImages parameter (an array). If sourceImages is a text array, each element of the array must contain the full pathname to a source image file. If sourceImages is a picture array, each element of the array contains the source picture for the corresponding TIFF page.
Parameter tiffCompression specifies the TIFF compression for the output file. It can be one of the TIFF compression constants:
qpx_TIFFCompressionCCITTFax4 | 4 | CCITT G4 compression |
qpx_TIFFCompressionCCITTFax3 | 3 | CCITT G3 compression |
qpx_TIFFCompressionNone | 1 | No compression |
qpx_TIFFCompressionPackBits | 32773 | Packbits compression |
Parameter tiffEndianess specifies the TIFF endianess for the output file. It can be one of the TIFF endianess constants:
qpx_TIFFNativeEndianess | 0 | Native endianess: big endian on MacOS, little endian on Windows |
qpx_TIFFBigEndian | 1 | Big endian (MSB to LSB) |
qpx_TIFFLittleEndian | 2 | Little endian (LSB to MSB) |
The optionFlags parameter can specify options for the TIFF creation operation. It can be a bitwise "OR" combination of the following constants:
qpx_TIFFShowProgress | 0x0001 | Display a progress dialog |
qpx_TIFFInsertAllPages | 0x0002 | Insert all pages from multi-page source files |
Related commands
QPx_CreateMultipageTIFFBLOB | Create a multi-page TIFF BLOB from individual images |