Skip to main content

GHIElectronics.Endpoint.Drawing

Off-screen 2D drawing primitives for Endpoint: Canvas, Color, Font, Image, PixelFormat. Header-only C++ wrapper over the same libendpoint primitives the .NET and Python packages call. Pure pixel drawing, independent of the LVGL-backed UI widget library.

Include once:

#include <endpoint/Drawing.h>
namespace Drawing = GHIElectronics::Endpoint::Drawing;

Classes​

ClassSummary
CanvasA pixel buffer plus the primitives to draw into it. Pick the size and PixelFormat at Create time; when done, hand Buffer() to whichever device accepts bytes.
FontA TrueType / OpenType font loaded from raw file bytes. Pass to Canvas::DrawText to render strings at any pixel size.
ImageA decoded image, ready to blit into a Canvas. Decoding (JPEG / PNG / BMP / GIF / TGA) happens once at Load; Canvas::DrawImage blits + converts on the fly.

Structs​

StructSummary
ColorA 32-bit color with 8 bits each of alpha, red, green, blue. Canvas maps it to its PixelFormat at draw time.

Enums​

EnumSummary
PixelFormatPixel layout of a Canvas buffer, and the layout written to the destination device when Canvas::Buffer() is handed to it.