Glossary Item Box
Description
Tagged image file format, one of the most widely supported file formats for storing bit-mapped images on personal computers (both PCs and Macintosh computers).
Import Library
im8tif.dil
Export Library
im8xtif.del
Remarks
Supports reading and writing 1 bit, 4, 8, and 24 bit color, CMYK, black and white and grayscale multipage and single page images. The supported compression types include Packbits and LZW for color, Modified CCITT, and CCITT Group 3 and Group 4 Fax for b/w only.
Attributes
Read and Write
|
Name |
DataType |
Notes |
|
EXTENSION |
OPTBLK_STRING |
"TIF" |
|
ARTIST |
OPTBLK_STRING |
NULL terminated string of variable length |
|
SOFTWARE |
OPTBLK_STRING |
NULL terminated string of variable length |
|
COPYRIGHT |
OPTBLK_STRING |
NULL terminated string of variable length |
|
DESCRIPTION |
OPTBLK_STRING |
NULL terminated string of variable length |
|
TITLE |
OPTBLK_STRING |
NULL terminated string of variable length |
|
COMPRESS |
OPTBLK_BOOL |
If set to false, will be overridden it TIFF_COMPRESS is defined |
|
TIFF_COMPRESS |
OPTBLK_STRING |
OPTBLK_COPY_IFSAMECOLOR |
Compression Options
NONE (default) MODCCITT | PACKBITS | GROUP3 | GROUP4 | LZW | JPEG_DCT | NEXT | CCITTRLEW | THUNDERSCAN | IT8CTPAD | IT8LW | IT8MP | IT8BL | DEFLATE | ADOBE_DEFLATE
This specifies what compression method to use on bi-level images. Colors images are only compressed using the LZW compression method. The PACKBITS compression is a simple run length encoding method with moderate compression. The MODCCITT compression uses Huffman encoding to perform good compression. The GROUP3 option is the CCITT Group 3 Fax compression and yields the same compression ratios as the MODCCITT compression. GROUP4 is the CCITT Group 4 fax compression standard, and provides the best compression ratio.
The default compression is PACKBITS for bi-level images and color images, unless you have a license agreement with UNISYS. In that case the default compression for color images is LZW.
|
TIFF_ROWSPERSTRIP |
OPTBLK_INT32 |
OPTBLK_COPY_IFSAMESIZE |
Range from 1 to image height
This specifies the number of image lines that should be written in each strip of a TIFF image. By default ImageMan will create strips about 8K in length which is the recommended size. Normally you would not need to change this option.
|
TIFF_FILLORDER |
OPTBLK_INT32 |
Controls whether bits in a byte are written LSB->MSB (1) or MSB->LSB (2)
This specifies that the bits in a byte should be written in reverse order. This is often required for files that are to be faxed.
|
TIFF_NEWSUBFILETYPE |
OPTBLK_INT32 |
This specifies the value of the NEWSUBFILETYPE tag that is written in the file. The default value is 0, which is appropriate for most files. A value of 2, which indicates the file is part of a multi-page document, is required for some fax files.
|
TIFF_BYTEFORMAT |
OPTBLK_STRING |
"MOTOROLA" | "INTEL"(default) Motorola or Intel byte ordering |
|
TIFF_COLORMODEL |
OPTBLK_INT32 |
OPTBLK_COPY_IFSAMECOLOR |
This specifies the color model used when writing the image data. The default is RGB.
|
Value |
Description |
|
0 |
white is zero |
|
1 |
black is zero |
|
2 |
RGB |
|
3 |
RGB Palette |
|
4 |
Transparency Mask |
|
5 |
CMYK |
|
6 |
YCbCr (unsupported) |
|
7 |
CIELab (unsupported) |
|
TIFF_TAG_%d |
ANYTYPE |
OPTBLK_DELAYED_LOAD |
May use any type and possibly an array of any type where %d is the tag number
Write Only
|
TIFF_XRES |
OPTBLK_INT32 |
This specifies the xresolution of the TIFF image. XResolution by default will get and set info from DIB header
|
TIFF_YRES |
OPTBLK_INT32 |
This specifies the xresolution of the TIFF image. YResolution by default will get and set info from DIB header
|
TIFF_PAGES |
OPTBLK_INT32 |
Total pages in file (write only) exposed in Imageman properties |
This specifies the number of pages that will be written in the file and causes the PAGENUMBER tag to be added to the file. This tag is generally used for fax files and some fax programs require this tag to be present in files to be faxed. You must specify this tag for each page of the file to be written and the value must equal the total number of pages that will be in the file. We do not validate this value so if the number doesn't equal the number of pages in the file other software may not be able to process the file correctly.
|
SOURCE |
OPTBLK_STRING |
Maps to SOFTWARE |
|
AUTHOR |
OPTBLK_STRING |
Maps to ARTIST |
|
COMMENT |
OPTBLK_STRING |
Maps to DESCRIPTION |
|
DOCUMENT |
OPTBLK_STRING |
Maps to TITLE |
Copyright 2008 Data Techniques, Inc. All Rights Reserved