Skip to main content

RawBitmapData

touchgfx/lcd/LCD.hpp

Raw bitmap data and dimensions, used for drawing a bitmap without a Bitmap database entry.

Public Functions​

boolhasTransparentPixels() const
Query if this bitmap has transparent pixels, i.e.

Public Attributes​

const uint8_t *data
The pixel data of the bitmap.
const uint8_t *extraData
The alpha channel or clut data of the bitmap, or 0 if not used.
Bitmap::BitmapFormatformat
The format of the bitmap data.
uint16_theight
The height of the bitmap.
const Rect &solidRect
The solid part of the image.
uint16_twidth
The width of the bitmap.

Public Functions Documentation​

hasTransparentPixels​

Query if this bitmap has transparent pixels, i.e.

the solid rect does not cover the entire bitmap.

Returns:

True if the bitmap has transparent pixels, false if it is fully solid.

Public Attributes Documentation​

data​

const uint8_t * data

The pixel data of the bitmap.

extraData​

const uint8_t * extraData

The alpha channel or clut data of the bitmap, or 0 if not used.

format​

The format of the bitmap data.

height​

uint16_t height

The height of the bitmap.

solidRect​

const Rect & solidRect

The solid part of the image.

width​

uint16_t width

The width of the bitmap.