IImageHelper Methods

AreaFromPoint

Returns a result rectangle identified via a flood fill starting at origin. Default tolerance 0.004 = roughly 1 px. (255 / tolerance = 1). Use SelectFromColorAtPoint for easier use of this functionality: t.SelectFromColorAtPoint(point, tolerance, filters)

Syntax:

ResultRectangle AreaFromPoint(
	Bitmap source,
	Point origin,
	double tolerance = 0.004
)

Parameter

Description

source

Type: Bitmap

Source image no which the floodfill will be executed.

origin

Type: Point

Point on the source where the flood fill should start.

[tolerance]

Type: Double

Tolerance to be used

ImageDifference

Returns the euclidean distance between two images

Syntax:

double ImageDifference(
	Bitmap original,
	Bitmap compare
)

Parameter

Description

original

Type: Bitmap

Original image

compare

Type: Bitmap

Image that is compared against the original image

Last updated