ZplRenderResult
public sealed class ZplRenderResultOne rendered label.
Constructors
| Signature | Description |
|---|---|
# ZplRenderResult() |
Properties
| Property | Type | Description |
|---|---|---|
required Bitmap { get; init; } | SKBitmap | |
Cut { get; } | ZplLabelCut | Cut decision for this label (set by ZplRenderer; see ZplRenderer.LastCutPlan). |
Diagnostics { get; } | IReadOnlyList<ZplDiagnostic> | Structured messages (stable codes, severity, source position) — see DIAGNOSTICS.md. |
Elements { get; init; } | IReadOnlyList<ZplRenderedElement> | |
RfidCommands { get; init; } | IReadOnlyList<ZplRfidCommand> | RFID commands of this label in format order (empty for labels without RFID); see ZplRfidCommand. |
Warnings { get; init; } | IReadOnlyList<string> | Fields that could not be rendered (invalid data etc.); a printer skips those silently. Derived from the ZplRenderResult.Diagnostics of severity Warning and Error (their messages). |
Methods
| Method Signature | Returns | Description |
|---|---|---|
# RenderedElementsAsJson(bool indented = false) | string | ZplRenderResult.Elements as a JSON array (needs ZplRenderSettings.TraceElements): every element has type (command, e.g. "A", "BC", "GB"), bounds {x, y, width, height} in dots, rotation (0/90/180/270 clockwise from N/R/I/B), reverse, data and sourceOffset/sourceLength into the ZPL. |

