CitrixVirtualUser CheckForImage Method (String, Int32, Int32, Int32, Int32, UInt32)C# API
Checks if an image has appeared in an expected position

Namespace: Facilita.Fc.Citrix
Assembly: fcCitrix (in fcCitrix.dll) Version: 9.5.7.98
Syntax

public bool CheckForImage(
	string bitmapFile,
	int xPos,
	int yPos,
	int width,
	int height,
	uint maxDiscrepancy = 0
)

Parameters

bitmapFile
Type: System String
The image to be found
xPos
Type: System Int32
the x coordinate of the top left hand corner of the search area
yPos
Type: System Int32
the y coordinate of the top left hand corner of the search area
width
Type: System Int32
the width of the search area
height
Type: System Int32
the height of the search area
maxDiscrepancy (Optional)
Type: System UInt32
the maximum number of pixels in the image that are allowed to not match

Return Value

Returns true if the image has appeared otherwise false.
Remarks

Checks for the appearance of an image in the given screen area or the full screen. Equivalent to WaitForImage(String, Int32, Int32, Int32, Int32, Int32) but returns true/false instead of raising a timeout exception.
See Also