Haru Free PDF Library
|
Grayscale describes each pixel with one byte. For each byte, 0x00
is maximum dark, 0xFF
maximum light.
Image data size is width * height
bytes.
The sequence of bytes for an 8-pixel 8-bit image with 2 rows and 4 columns would be:
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.
Image data size is width * height * 3
bytes.
The sequence of bytes for an 8-pixel 24-bit image with 2 rows and 4 columns would be:
The 32-bit CMYK color image describes each pixel with four bytes (Cyan
, Magenta
, Yellow
, Black
). For each byte, 0x00
is maximum dark, 0xFF
maximum light.
Image data size is width * height * 4
bytes.
The sequence of bytes for an 8-pixel 32-bit image with 2 rows and 4 columns would be: