ImageRotation type
An object of this class represents the amount that an image should be rotated.
ImageRotation method
Syntax
let rotationObj = new ImageRotation(rotation);
Parameters
rotation
Type: ImageRotationPlain
The amount by which the image should be rotated in degrees. A positive value indicates a clockwise rotation.
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
Return value
Type: ImageRotation
getRotation method
Syntax
let value = rotationObj.getRotation();
rotationObj.rotation = value;
value = rotationObj.rotation;
Note that this feature is available as both a method and a property.
Parameters
This method does not take any parameters.
Return value
Type: ImageRotationPlain
The amount by which the image should be rotated in degrees. A positive value indicates a clockwise rotation.
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
setRotation method
Syntax
rotationObj.setRotation(rotation);
rotationObj.rotation = value;
value = rotationObj.rotation;
Note that this feature is available as both a method and a property.
Parameters
rotation
Type: ImageRotationPlain
The amount by which the image should be rotated in degrees. A positive value indicates a clockwise rotation.
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
Return value
Type: void