GHIElectronics.Endpoint.Drawing
Off-screen 2D drawing primitives for Endpoint: Canvas, Color, Font, Image, PixelFormat. Pure pixel drawing independent of the LVGL-backed UI widget library. Hand the Canvas buffer to any display, SPI/I2C device, or file.
Classes
| Class | Summary |
|---|
| Canvas | A 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: DisplayController.Flush, SpiDevice.Write, I2cDevice.Write, a file, anywhere. |
| Font | A TrueType / OpenType font loaded from raw file bytes. Pass to Canvas.DrawText to render strings at any pixel size. |
| Image | A decoded image, ready to blit into a Canvas. Decoding (JPEG / PNG / BMP / GIF / TGA) happens once at Load; Canvas.DrawImage then blits + converts to the target PixelFormat on the fly. |
Structs
| Struct | Summary |
|---|
| Color | A 32-bit color with 8 bits each of alpha, red, green, blue. Canvas maps it to its PixelFormat at draw time. |
Enums
| Enum | Summary |
|---|
| PixelFormat | Pixel layout of a Canvas buffer, and the layout written to the destination device when Canvas.Buffer is handed to it. |