FabGL
ESP32 VGA Controller and Graphics Library
|
Represents an image with 64 colors image and transparency. More...
#include <vgacontroller.h>
Public Attributes | |
uint8_t const * | data |
bool | dataAllocated |
int16_t | height |
int16_t | width |
Represents an image with 64 colors image and transparency.
Each pixel uses 8 bits (one byte), 2 bits per channel - RGBA, with following disposition:
7 6 5 4 3 2 1 0 A A B B G G R R
AA = 0 fully transparent, AA = 3 fully opaque. Each color channel can have values from 0 to 3 (maxmum intensity).
uint8_t const* fabgl::Bitmap::data |
Bitmap binary data
bool fabgl::Bitmap::dataAllocated |
If true data is released when bitmap is destroyed
int16_t fabgl::Bitmap::height |
Bitmap vertical size
int16_t fabgl::Bitmap::width |
Bitmap horizontal size