IFD | Image | |
---|---|---|
Code | 322 (hex 0x0142) | |
Name | TileWidth | |
LibTiff name | TIFFTAG_TILEWIDTH | |
Type | SHORT or LONG | |
Count | 1 | |
Default | None |
The tile width in pixels. This is the number of columns in each tile.
Assuming integer arithmetic, three computed values that are useful in the following field descriptions are:
TilesAcross = (ImageWidth + TileWidth - 1) / TileWidth
TilesDown = (ImageLength + TileLength - 1) / TileLength
TilesPerImage = TilesAcross * TilesDown
These computed values are not TIFF fields; they are simply values determined by the ImageWidth, TileWidth, ImageLength, and TileLength fields.
TileWidth must be a multiple of 16. This restriction improves performance in some graphics environments and enhances compatibility with compression schemes such as JPEG. Tiles need not be square.
Note that ImageWidth can be less than TileWidth, although this means that the tiles are too large or that you are using tiling on really small images, neither of which is recommended. The same observation holds for ImageLength and TileLength.