Skip to main content

ImageRotation class

An object of this class represents the amount that an image should be rotated.

Import statement

import com.applitools.eyes.selenium.positioning.ImageRotation;

ImageRotation method​

Syntax​

ImageRotation rotationObj = new ImageRotation(rotation);

Parameters​

rotation

Type: int

The amount by which the image should be rotated in degrees. A positive value indicates a clockwise rotation.

Return value​

Type: ImageRotation

getRotation method​

Syntax​

int value = rotationObj.getRotation();

Parameters​

This method does not take any parameters.

Return value​

Type: int

The amount by which the image should be rotated in degrees. A positive value indicates a clockwise rotation.