Note: each pixel is actually read as a single unsigned number,
-
so a 3-component pixel with value "0x0000FF" can also be written as "0xFF" or "255" (decimal).
|
Pixels are specified from left to right, bottom to top. The first hexadecimal value is the lower left pixel of the image, and the last value is the upper right pixel.
|
For example, 1 2 1 0xFF 0x00
|
is a 1 pixel wide by 2 pixel high greyscale image, with the bottom pixel white and the top pixel black.
|
2 4 3 0xFF0000 0xFF00 0 0 0 0 0xFFFFFF 0xFFFF00
|
is a 2 pixel wide by 4 pixel high RGB image
|
shown in diagram
|