Table of Contents

Method GenerateDifferenceMask

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

GenerateDifferenceMask(string, string)

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

public static SKImage GenerateDifferenceMask(string firstFilename, string secondFilename)

Parameters

firstFilename string

The file path of the first image.

secondFilename string

The file path of the second image.

Returns

SKImage

An SKImage where differing pixels are white and matching pixels are black.

GenerateDifferenceMask(SKBitmap, SKBitmap)

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

public static SKImage GenerateDifferenceMask(SKBitmap first, SKBitmap second)

Parameters

first SKBitmap

The first bitmap.

second SKBitmap

The second bitmap.

Returns

SKImage

An SKImage where differing pixels are white and matching pixels are black.

GenerateDifferenceMask(SKPixmap, SKPixmap)

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

public static SKImage GenerateDifferenceMask(SKPixmap first, SKPixmap second)

Parameters

first SKPixmap

The first pixmap.

second SKPixmap

The second pixmap.

Returns

SKImage

An SKImage where differing pixels are white and matching pixels are black.

GenerateDifferenceMask(SKImage, SKImage)

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

public static SKImage GenerateDifferenceMask(SKImage first, SKImage second)

Parameters

first SKImage

The first image.

second SKImage

The second image.

Returns

SKImage

An SKImage where differing pixels are white and matching pixels are black.

Exceptions

ArgumentNullException

first or second is null.

InvalidOperationException

The images have different dimensions.