Table of Contents

Constructor SKPixelComparisonResult

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

SKPixelComparisonResult(int, int, int)

Initializes a new instance of SKPixelComparisonResult.

public SKPixelComparisonResult(int totalPixels, int errorPixelCount, int absoluteError)

Parameters

totalPixels int

The total number of pixels compared.

errorPixelCount int

The number of pixels that differ between the two images.

absoluteError int

The sum of per-channel (RGB) differences across all pixels.

SKPixelComparisonResult(int, int, int, long)

Initializes a new instance of SKPixelComparisonResult.

public SKPixelComparisonResult(int totalPixels, int errorPixelCount, int absoluteError, long sumSquaredError)

Parameters

totalPixels int

The total number of pixels compared.

errorPixelCount int

The number of pixels that differ between the two images.

absoluteError int

The sum of per-channel (RGB) differences across all pixels.

sumSquaredError long

The sum of per-channel (RGB) squared differences across all pixels.

SKPixelComparisonResult(int, int, int, long, int)

Initializes a new instance of SKPixelComparisonResult.

public SKPixelComparisonResult(int totalPixels, int errorPixelCount, int absoluteError, long sumSquaredError, int channelCount)

Parameters

totalPixels int

The total number of pixels compared.

errorPixelCount int

The number of pixels that differ between the two images.

absoluteError int

The sum of per-channel differences across all pixels.

sumSquaredError long

The sum of per-channel squared differences across all pixels.

channelCount int

The number of channels compared (3 for RGB, 4 for RGBA).