FabGL
ESP32 VGA Controller and Graphics Library
fabgl::Bitmap Struct Reference

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
 

Detailed Description

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).

Member Data Documentation

◆ data

uint8_t const* fabgl::Bitmap::data

Bitmap binary data

◆ dataAllocated

bool fabgl::Bitmap::dataAllocated

If true data is released when bitmap is destroyed

◆ height

int16_t fabgl::Bitmap::height

Bitmap vertical size

◆ width

int16_t fabgl::Bitmap::width

Bitmap horizontal size


The documentation for this struct was generated from the following files: