SixelDecoder
Namespace: Hex1b.Automation
Assembly: Hex1b.dll
Decodes Sixel graphics data to raw pixel arrays for SVG rendering.
public static class SixelDecoderInheritance
Object → SixelDecoder
Methods
Decode(string, int, int)
Decodes a Sixel DCS payload to raw RGBA pixel data.
Parameters:
payload(String): The Sixel payload (including or excluding DCS wrapper).cellWidth(Int32): The width of a terminal cell in pixels. Unused; retained for source compatibility.cellHeight(Int32): The height of a terminal cell in pixels. Unused; retained for source compatibility.
Returns: SixelImage
Decoded image with RGBA pixel data, or null when the payload is empty or the rasterizer explicitly returned geometry only.
public static SixelImage? Decode(string payload, int cellWidth = 9, int cellHeight = 18)Remarks
This compatibility shim owns no grammar, color, or raster logic. It consumes the authoritative incremental Sixel parser and delegates every pixel decision to the bounded SixelRasterizer.
It returns null only for the documented failure and degradation cases: an empty payload, a parse outcome that is not a complete graphic, or an explicit geometry-only raster produced when resource policy refuses pixel allocation.