touchgfx::Bitmap::dynamicBitmapGetAddress() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXtouchgfx::Bitmap::dynamicBitmapGetAddress()

touchgfx::Bitmap::dynamicBitmapGetAddress() method

@fn static uint8_t* Bitmap::dynamicBitmapGetAddress(BitmapId id); Get the address of the dynamic bitmap data. Get the address of the dynamic bitmap data. It is important that the address of a dynamic bitmap is not stored elsewhere as a dynamic bitmap may be moved in memory when other bitmaps are added and removed. Only store the BitmapId and ask for the address of the bitmap data when needed.

Syntax

static uint8_t* dynamicBitmapGetAddress(BitmapId id);

Arguments

id

The BitmapId of the dynamic bitmap.

Return value

null if it fails, else an uint8_t*.

Notes

The address of a dynamic bitmap may change when other dynamic bitmaps are added and removed. Never store the address of dynamic images, only store the BitmapId as that will not change.

References

LocationText
Bitmap.hpp:437
static uint8_t* dynamicBitmapGetAddress(BitmapId id);

Type Use

Type of touchgfx::Bitmap::dynamicBitmapGetAddress()
touchgfx::Bitmap::dynamicBitmapGetAddress()
uint8_t
all items filtered out