Table of Contents

Class SKPixelComparer

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

Provides methods for pixel-by-pixel comparison of images. This class is thread-safe as all methods are stateless static operations.

public static class SKPixelComparer
Inheritance
SKPixelComparer
Inherited Members

Methods

Compare(SKBitmap, SKBitmap)

Compares two bitmaps pixel by pixel.

Compare(SKBitmap, SKBitmap, SKPixelComparerOptions?)

Compares two bitmaps pixel by pixel, using the specified comparison options.

Compare(SKBitmap, SKBitmap, SKBitmap)

Compares two bitmaps pixel by pixel, using a tolerance mask.

Compare(SKBitmap, SKBitmap, SKBitmap, SKPixelComparerOptions?)

Compares two bitmaps pixel by pixel, using a tolerance mask and the specified comparison options.

Compare(SKBitmap, SKBitmap, int)

Compares two bitmaps pixel by pixel, using a uniform per-pixel tolerance threshold.

Compare(SKBitmap, SKBitmap, int, SKPixelComparerOptions?)

Compares two bitmaps pixel by pixel, using a uniform tolerance threshold and the specified comparison options.

Compare(SKImage, SKImage)

Compares two images pixel by pixel.

Compare(SKImage, SKImage, SKPixelComparerOptions?)

Compares two images pixel by pixel, using the specified comparison options. When CompareAlpha is true, the alpha channel is included in the comparison.

Compare(SKImage, SKImage, SKImage)

Compares two images pixel by pixel, using a tolerance mask. Pixel differences that fall within the mask's per-channel values are not counted as errors. Each channel is checked independently.

Compare(SKImage, SKImage, SKImage, SKPixelComparerOptions?)

Compares two images pixel by pixel, using a tolerance mask and the specified comparison options. When TolerancePerChannel is true, each channel is checked independently against the corresponding mask channel value. When false, the sum of per-channel differences is checked against the sum of the mask's channel values. When CompareAlpha is true, the alpha channel is included in the comparison.

Compare(SKImage, SKImage, int)

Compares two images pixel by pixel, using a uniform per-pixel tolerance threshold. Pixels where the total per-channel difference (|ΔR| + |ΔG| + |ΔB|) is at or below the tolerance are not counted as errors.

Compare(SKImage, SKImage, int, SKPixelComparerOptions?)

Compares two images pixel by pixel, using a uniform tolerance threshold and the specified comparison options. When TolerancePerChannel is true, each channel is checked independently against the tolerance value. When false, the sum of per-channel differences is checked against the tolerance. When CompareAlpha is true, the alpha channel is included in the comparison.

Compare(SKPixmap, SKPixmap)

Compares two pixmaps pixel by pixel.

Compare(SKPixmap, SKPixmap, SKPixelComparerOptions?)

Compares two pixmaps pixel by pixel, using the specified comparison options.

Compare(SKPixmap, SKPixmap, SKPixmap)

Compares two pixmaps pixel by pixel, using a tolerance mask.

Compare(SKPixmap, SKPixmap, SKPixmap, SKPixelComparerOptions?)

Compares two pixmaps pixel by pixel, using a tolerance mask and the specified comparison options.

Compare(SKPixmap, SKPixmap, int)

Compares two pixmaps pixel by pixel, using a uniform per-pixel tolerance threshold.

Compare(SKPixmap, SKPixmap, int, SKPixelComparerOptions?)

Compares two pixmaps pixel by pixel, using a uniform tolerance threshold and the specified comparison options.

Compare(string, string)

Compares two images loaded from file paths pixel by pixel.

Compare(string, string, SKPixelComparerOptions?)

Compares two images loaded from file paths pixel by pixel, using the specified comparison options.

Compare(string, string, int)

Compares two images loaded from file paths pixel by pixel, using a uniform per-pixel tolerance threshold. Pixels where the total per-channel difference (|ΔR| + |ΔG| + |ΔB|) is at or below the tolerance are not counted as errors.

Compare(string, string, int, SKPixelComparerOptions?)

Compares two images loaded from file paths pixel by pixel, using a uniform tolerance threshold and the specified comparison options.

Compare(string, string, string)

Compares two images loaded from file paths pixel by pixel, using a tolerance mask.

Compare(string, string, string, SKPixelComparerOptions?)

Compares two images loaded from file paths pixel by pixel, using a tolerance mask and the specified comparison options.

GenerateDifferenceImage(SKBitmap, SKBitmap)

Generates a per-channel difference image from two bitmaps.

GenerateDifferenceImage(SKImage, SKImage)

Generates a per-channel difference image from two images. Each pixel in the result contains the absolute per-channel differences as RGB values, unlike GenerateDifferenceMask(SKImage, SKImage) which produces a binary black-and-white mask.

GenerateDifferenceImage(SKPixmap, SKPixmap)

Generates a per-channel difference image from two pixmaps.

GenerateDifferenceImage(string, string)

Generates a per-channel difference image from two images loaded from file paths. Each pixel in the result contains the absolute per-channel differences as RGB values.

GenerateDifferenceMask(SKBitmap, SKBitmap)

Generates a black-and-white mask image highlighting pixel differences between two bitmaps.

GenerateDifferenceMask(SKImage, SKImage)

Generates a black-and-white mask image highlighting pixel differences between two images.

GenerateDifferenceMask(SKPixmap, SKPixmap)

Generates a black-and-white mask image highlighting pixel differences between two pixmaps.

GenerateDifferenceMask(string, string)

Generates a black-and-white mask image highlighting pixel differences between two images loaded from file paths.