Skip to main content

Target class

This class provides methods that are used to define and configure the checkpoint target for the Check method.

Once you create a ImagesCheckSettings object using one of the factory methods defined by this class, you can configure the checkpoint by calling other methods from the ImagesCheckSettings class, chaining them one after the other using the '.' operator.

Using statement

using Applitools.Images;

Image method

Syntax

eyes.Check(Target.Image(image))
eyes.Check(Target.Image(path))

Note: This method is a static method.

Parameters

image

Type: Bitmap

The checkpoint image as an object in PNG format.

path

Type: string

A string with the file system path to the checkpoint image file. The image must be in PNG format.

Return value

Type: ImagesCheckSettings

Url method

Syntax

eyes.Check(Target.Url(uri))
eyes.Check(Target.Url(uriString))

Note: This method is a static method.

Parameters

uri

Type: Uri

The URI of the image that should be used for this checkpoint.

uriString

Type: string

A string with the URL of the checkpoint image. The image must be in PNG format.

Return value

Type: ImagesCheckSettings