Class
PixelMap

Pixel map.

Definition

Namespace:ArtOfTest.Common

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class PixelMap

Inheritance: objectPixelMap

Properties

Height

The height of the map

Declaration

cs-api-definition
public int Height { get; }

Property Value

int

Width

The width of the map

Declaration

cs-api-definition
public int Width { get; }

Property Value

int

this[int, int]

Access the color of a pixel.

Declaration

cs-api-definition
public Color this[int row, int column] { get; set; }

Parameters

row

int

column

int

Property Value

Color

Methods

AreExact(PixelMap)

Whether two pixel maps are exactly the same.

Declaration

cs-api-definition
public bool AreExact(PixelMap map)

Parameters

map

PixelMap

The other map.

Returns

bool

Compare(PixelMap, double)

Compare this map to another map and return whether they match within the tolerance percent 0 tolerance means they both need to be exact matches 1% means we can tolerate 1% of the pixels being difference

Declaration

cs-api-definition
public bool Compare(PixelMap map, double tolerancePercent)

Parameters

map

PixelMap

tolerancePercent

double

Returns

bool

FromBitmap(Bitmap)

Create a pixel map from a bitmap.

Declaration

cs-api-definition
public static PixelMap FromBitmap(Bitmap bitmap)

Parameters

bitmap

Bitmap

Returns

PixelMap

GetHistogram()

Return the histogram of this image.

Declaration

cs-api-definition
public Histogram GetHistogram()

Returns

Histogram