zplCore.comzplCore.com

ZplDiff

public static class ZplDiff

Compares two ZPL versions: renders both, builds a pixel diff overlay (removed red, added green, unchanged grey) with changed-pixel counts and bounding boxes, plus a line diff of the (pretty-printed) sources.

Try it online on zplCloud.com: ZPL Diff

Methods

Method SignatureReturnsDescription
static # Compare(string zplA, string zplB, ZplRenderSettings? settings = default, ZplDiffOptions? options = default)ZplDiffResultRenders zplA and zplB with settings and compares them.
static # CompareImages(SKBitmap a, SKBitmap b, ZplDiffOptions? options = default, int index = 0)ZplLabelDiffPixel diff of two rendered labels (a missing side counts as blank).
static # DiffLines(string a, string b)IReadOnlyList<ZplDiffLine>Line diff (Myers) of two texts; CR LF and LF both end a line.