TIFF Tag BitsPerSample
IFD | ![]() | Image |
---|---|---|
Code | 258 (hex 0x0102) | |
Name | BitsPerSample | |
LibTiff name | TIFFTAG_BITSPERSAMPLE | |
Type | SHORT | |
Count | N = SamplesPerPixel | |
Default | 1 |
Description
Number of bits per component.
Note that this field allows a different number of bits per component for each component corresponding to a pixel. For example, RGB color data could use a different number of bits per component for each of the three color planes. Most RGB files will have the same number of BitsPerSample for each component. Even in this case, the writer must write all three values.
LibTiff does not support different BitsPerSample values for different components.