Defines | |
| #define | IND_COLOR_INDEX 0x1900 |
| Colour palette. | |
| #define | IND_RGB 0x1907 |
| Real colour, using 3 bytes per pixel. | |
| #define | IND_RGBA 0x1908 |
| Real colour, using 4 bytes per pixel. The fourth byte is used to the transparency variable. | |
| #define | IND_BGR 0x80E0 |
| Real colour using 3 bytes per pixel. | |
| #define | IND_BGRA 0x80E1 |
| Real colour using 3 bytes per pixel. The fourth byte is used to the transparency variable. | |
| #define | IND_LUMINANCE 0x1909 |
| Gray range using 1 byte per pixel. | |
Typedefs | |
| typedef int | IND_Format |
| Colour formats. | |
| typedef int IND_Format |
Colour formats.
IND_Image objects can have different formats depending on the number of colours. To have truecolor, the range of colors than human eye can perceive, 3 bytes per pixel are necessary. These are R (Red), G (Green) and B (Blue) bytes.
When we want images to have per pixel transparency, it is necessary an extra byte. The A byte, also called alpha chanel. This byte doesn't show a color, but a level of transparency (0 full transparent, 255 full opaque).
It is also possible to define images with less colors and to obtain good results. For example using gray range (they only use oner byte per pixel).
Types IND_Format
1.5.4