Skip to main content

Image Class

Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI

Displays a raster image fed as raw RGB565 pixel bytes.

class Image : public Widget {};

Constructors​

Image(Widget parent)​

Image(const Widget& parent);

Create an image inside parent. Call Image.SetSource to supply pixels.

ParameterTypeDescription
parentWidgetContaining widget.

Methods​

Dispose()​

virtual void Dispose() override;

Release the pinned pixel buffer, then destroy the widget. Idempotent.

SetSource(byte[] rgb565Pixels, int width, int height)​

void SetSource(const std::vector<uint8_t>& rgb565Pixels, int32_t width, int32_t height);

Set the image from RGB565 pixel bytes (little-endian). Width and height describe the source bitmap; use Widget.Width/ Widget.Height for displayed size (LVGL scales).