#include <DrawingPrimitives.h>
Public Member Functions | |
PaletteDrawingData (const tcgfx::color_t *palette, const uint8_t *data, tcgfx::color_t maskColor, uint8_t bitDepth) | |
PaletteDrawingData (const tcgfx::color_t *palette, const uint8_t *data, uint8_t bitDepth) | |
const color_t * | getPalette () const |
const uint8_t * | getData () const |
bool | hasMask () const |
color_t | getMaskColor () const |
uint8_t | getBitDepth () const |
Public Attributes | |
const tcgfx::color_t * | palette |
const uint8_t * | data |
tcgfx::color_t | maskColor |
uint8_t | bitDepth |
Structure that represent a palette based color image. For palette based images the data pointer will be to an instance of this struct. It is a struct because it can be stored in program memory. It has methods to make it easier for us to extend it later.
Please avoid using the fields directly.