setRotation method

Class: ConfigurationPlatform: Selenium 4Language: JavaScript SDK:

Use this method to set the rotation to apply to the checkpoint images before matching.

Typically, this is used to switch between portrait and landscope modes (90 degrees).

Syntax

let configval = config.setRotation(rotation_lit);

let configval = config.setRotation(rotation_obj);
config.rotation = configval;
configval = config.rotation;

Note that this feature is available as both a method and a property.

Parameters

rotation_lit
Type:ImageRotationPlain

The number of degrees to rotate.

A literal object that defines the amount to rotate.

Type definitions

ImageRotationPlain
The legal values that an image may be rotated by. This may have the following values: -270|-180|-90|0|90|180|270
rotation_obj
Type:ImageRotation

The number of degrees to rotate.

A class object that defines the amount to rotate.

Return value

Type: Configuration