ColorSpace

The color space of the image.

Values

ValueMeaning
deviceGray0

8 bit gray scale image.
The gray scale describes each pixel with one byte.
For each byte, 0X00 is maximum dark, 0XFF maximum light. The size of the image data is (width * height) bytes.
The sequence of bytes for an 8-pixel 8-bit image with 2 rows and 4 columns would be:

1   2   3   4
5   6   7   8
deviceRGB

The RGB color model is an additive color model in which red, green, and blue light are added together in various ways to reproduce a broad array of colors.
The 24 bit RGB color image describes each pixel with three bytes (Red, Green, Blue).
For each byte, 0X00 is maximum dark, 0XFF maximum light. The size of the image data is (width * height * 3) bytes. The sequence of bytes for an 8-pixel 24-bit image with 2 rows and 4 columns would be:

1R 1G 1B  2R 2G 2B  3R 3G 3B  4R 4G 4B
5R 5G 5B  6R 6G 6B  7R 7G 7B  8R 8G 8B
deviceCMYK

The CMYK color model (process color, four color) is a subtractive color model, used in color printing, and is also used to describe the printing process itself.
The 32 bit CMYK color image describes each pixel with four bytes (Cyan, Magenta, Yellow, Black).
The size of the image data is (width * height * 4) bytes. For each byte, 0X00 is maximum dark, 0XFF maximum light.
The sequence of bytes for an 8-pixel 32-bit image with 2 rows and 4 columns would be:

1C 1M 1Y 1K  2C 2M 2Y 2K  3C 3M 3Y 3K  4C 4M 4Y 4K
5C 5M 5Y 5K  6C 6M 6Y 6K  7C 7M 7Y 7K  8C 8M 8Y 8K
calGray
calRGB
lab
iccBased
separation
deviceN
indexed
pattern

Meta