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(Widget): ...

Constructors​

Image(Widget parent)​

def __init__(self, parent: Widget):

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

ParameterTypeDescription
parentWidgetContaining widget.

Methods​

Dispose()​

def Dispose(self) -> None:

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

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

def SetSource(self, rgb565Pixels: list[int], width: int, height: int) -> None:

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