zplCore.comzplCore.com
class8 members

ZplRenderResult

public sealed class ZplRenderResult

One rendered label.

Constructors

SignatureDescription
# ZplRenderResult()

Properties

PropertyTypeDescription
required Bitmap { get; init; }SKBitmap
Cut { get; }ZplLabelCutCut 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 SignatureReturnsDescription
# RenderedElementsAsJson(bool indented = false)stringZplRenderResult.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.