Namespace: DadGFX::cImageLayer Files: cDisplay.h / cDisplay.cpp Directory: DAD_FORGE/STM_GFX2 Inheritance: cLayerBase Description: Class managing an image layer dedicated to bitmap display.
📋 Class Description
The cImageLayer class is a specialization of cLayerBase designed for displaying static or animated content stored in memory (typically in Flash or SDRAM). Unlike a traditional drawing layer, it is optimized for manipulating precomputed image buffers. It supports multiple image frames to enable simple animations by simply changing the active frame index.
📚 Public Methods
cImageLayer
Element
Details
Method
cImageLayer()
Description
Default constructor.
~cImageLayer
Element
Details
Method
~cImageLayer()
Description
Destructor.
setFrame
Element
Details
Method
void setFrame(uint8_t Frame)
Description
Updates the active frame index. Calculates the new pointer to the image memory and invalidates the layer area to force a refresh.
Parameter(s)
Â
Frame
uint8_t: The index of the frame to display (0 to m_NbFrame - 1).