|
roo_display
API Documentation for roo_display
|
ColorMode template contract. More...
#include <color_modes.h>
Public Member Functions | |
| constexpr Color | toArgbColor (uint32_t in) const |
| constexpr uint32_t | fromArgbColor (Color color) const |
| constexpr TransparencyMode | transparency () const |
Static Public Attributes | |
| static const int8_t | bits_per_pixel = 32 |
ColorMode template contract.
A color mode T must provide:
Meaning and expectations:
bits_per_pixel: how many bits encode a single pixel in this mode.toArgbColor(in): convert a raw pixel value to ARGB8888. If bits_per_pixel < 8, the value is stored in the low-order bits of in.fromArgbColor(color): convert ARGB8888 to a raw pixel value. If bits_per_pixel < 8, the return value must be in the low-order bits.transparency(): indicates the alpha capabilities of the mode (opaque, binary, or gradual). Used as a rendering optimization hint.For optimized blending, consider specializing RawFullByteBlender or RawSubByteBlender. 32-bit ARGB color mode.
Definition at line 35 of file color_modes.h.
Definition at line 41 of file color_modes.h.
References color.
Definition at line 39 of file color_modes.h.
|
inlineconstexpr |
Definition at line 45 of file color_modes.h.
References roo_display::kFull.
Definition at line 37 of file color_modes.h.