IG_ISIS_TAG_SAMPLESPERPIXEL
Number of components per pixel. 0x0115 ∙ 277
IG_ISIS_TAG_SAMPLESPERPIXEL contains the number of values each pixel uses to represent its data.
Type:
IG_ISIS_TAG_TYPE_SHORT
Drivers:
All source and destination drivers.
Values:
Value |
Meaning |
1 |
One sample per pixel. Binary, grayscale, and palette color images use this value. |
3 |
Three samples per pixel. RGB color images use this value. Each pixel has three samples: one for red, one for green, and one for blue, regardless of how many bits are used to represent each sample. |
The default value is 1.
Tag Dependencies and Dependent Tags:
The following tags together define the color format of the image data:
IG_ISIS_TAG_SAMPLESPERPIXEL ∙ IG_ISIS_TAG_BITSPERSAMPLE ∙ IG_ISIS_TAG_PHOTOMETRICINTERPRETATION ∙ IG_ISIS_TAG_COMPRESSION ∙ IG_ISIS_TAG_PLANARCONFIGURATION
These tags relate to color format as shown in the following table:
Samples PerPixel |
BitsPerSample |
Photometric Interpretation |
Image Type |
1 |
1 |
WHITE0 or WHITE1 |
Binary (black/white) |
1 |
4 |
WHITE0 typical WHITE1 possible |
16-level gray |
8 |
|
256-level gray |
|
1 |
4 |
PALETTE |
16-color palette |
8 |
|
256-color palette |
|
3 |
1 |
RGB |
3-bit color |
8 |
|
24-bit color |
|
See Also
IG_ISIS_TAG_BITSPERSAMPLE
IG_ISIS_TAG_PHOTOMETRICINTERPRETATION
IG_ISIS_TAG_PLANARCONFIGURATION