zplCore.comzplCore.com

ImageCompare

public static class ImageCompare

Tolerant comparison of rendered labels (e.g. against reference renders of a real printer).

Methods

Method SignatureReturnsDescription
static # Compare(SKBitmap expected, SKBitmap actual, int tolerance = 2)ImageComparisonPrecision = share of ink in actual that has ink in expected within tolerance pixels; Recall = the same the other way round.
static # Diff(SKBitmap expected, SKBitmap actual)SKBitmapOverlay: black = both, red = only expected, blue = only actual.