ImgSaveAsTif

Top  Previous  Next

Prototype

 

boolSaved:=ImgSaveAsTif(intImageHandle, strFileName, intCompression, intRowsPerStrip)

 

Description

 

Saves an image in TIFF format. If file already exists, the image is appended because TIFF format supports multiple pages in one file.

 

Parameters

 

intImageHandle: integer value corresponding to the image handle.

 

strFileName: A string containing a valid path and filename.

 

intCompression: An integer with the compression schema index to use: 0=default, 1=none, 2=packbits, 3=ccittg3, 4=ccittg3-2d, 5=ccittg4, 6=zlib, 7=jpeg, 8=lzw. Please note that compression schemas 2, 3 and 4 work only on monochorme images, while compression schema 7 works only on grayscale/color images.

 

intRowsPerStrip: An integer with the number or rows per strip to use. if 0 no strips will be used.

 

Returned value

 

boolSaved: boolean value that specifies if saving operation was correctly executed.

 

Notes

 

None.

 

Example

 

// Build the file name to use

NewFileName:='c:\images\TIFFs\'+ExtractFileName(_CurrentInputFile);

// Save current image in tiff format using default compression, no strips

ImgSaveAsTif(_CurrentImage,NewFileName,0,0);