TesterSelectExtensions Methods

SelectFromColorAtPoint

Overload List

Name

Description

SelectFromColorAtPoint(ITester, ImageReference, Double, TimeSpan, ImageDetectionParameters, IImageFilter[ ])

Returns a Select filter that contains the connected region of the same color (floodfill) on the filtered current screen starting from the Hotspot (or middle) of the imagesearch with the provided imageReference. Throws a TestStepAbortedException, if the image cannot be found on screen.

Syntax:

public static Select SelectFromColorAtPoint(
	this ITester t,
	ImageReference imageReference,
	double tolerance = 0.004,
	TimeSpan searchTime = default,
	ImageDetectionParameters parameters = null,
	params IImageFilter[] filters
)

Parameters:

Parameter

Description

t

imageReference

[tolerance]

[searchTime]

[parameters]

Type: ImageDetectionParameters

The image parameters for the imagesearches.

[filters]

Return Value:

A Select filter.

SelectFromColorAtPoint(ITester, IEngineResult, Double, IImageFilter[ ])

Returns a Select filter that contains the connected region of the same color (floodfill) on the filtered current screen starting from the hotspot or Location of the provided position.

Syntax:

public static Select SelectFromColorAtPoint(
	this ITester t,
	IEngineResult position,
	double tolerance = 0.004,
	params IImageFilter[] filters
)

Parameters:

Parameter

Description

t

position

[tolerance]

[filters]

Return Value:

A Select filter.

SelectFromColorAtPoint(ITester, Point, Double, IImageFilter[ ])

Returns a Select filter that contains the connected region of the same color (floodfill) on the filtered current screen starting from the provided point.

Syntax:

public static Select SelectFromColorAtPoint(
	this ITester t,
	Point origin,
	double tolerance = 0.004,
	params IImageFilter[] filters
)

Parameters:

Parameter

Description

t

origin

[tolerance]

[filters]

Return Value:

A Select filter.

SelectFromTopLeftAndBottomRightImages

Returns a Select filter formed by Hotspots (or middle if no hotspot set) of topLeftImage and bottomRightImage. Throws TestStepAbortedException if Images not found.

Syntax:

public static Select SelectFromTopLeftAndBottomRightImages(
	this ITester t,
	ImageReference topLeftImage,
	ImageReference bottomRightImage,
	TimeSpan searchTime = default,
	ImageDetectionParameters parameters = null,
	params IImageFilter[] filters
)

Parameters:

Parameter

Description

t

topLeftImage

bottomRightImage

The image which hotspot or middle marks the bottom right corner of the select

[searchTime]

How long the search for the image should last at most.

[parameters]

Type: ImageDetectionParameters The tolerance for the floodfill, max allowed differences in each RGB color channels. Default tolerance 0.004 = roughly 1 px. (255 / tolerance = 1)

[filters]

Return Value:

A Select filter.

Last updated