ZplDiff
public static class ZplDiffCompares 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 Signature | Returns | Description |
|---|---|---|
static # Compare(string zplA, string zplB, ZplRenderSettings? settings = default, ZplDiffOptions? options = default) | ZplDiffResult | Renders zplA and zplB with settings and compares them. |
static # CompareImages(SKBitmap a, SKBitmap b, ZplDiffOptions? options = default, int index = 0) | ZplLabelDiff | Pixel 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. |

