Rotation - property of the PmgRasterImage object
Description:
Image rotation and flip.
Values:
0 = Do not rotate - No rotation.
1 = Left - Rotate left.
2 = Down - Rotate down.
3 = Right - Rotate right.
4 = Horizontal Flip - X-axis flip (i.e. flip across the vertical axis, the left side of the image will be on the right, and vice versa).
5 = Horizontal Flip + Left - X-axis flip and rotate left.
6 = Horizontal Flip + Down - X-axis flip and rotate down.
7 = Horizontal Flip + Right - X-axis flip and rotate right.
Note:
Property access
for read and write.
The default value of this property is defined in the "
Flip and rotate" configurator of this object.
This property is also functional in
Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oImg = pMe.Items("/RImg0");
var nRotation = oImg.Rotation;
// Reading from the property
oImg.Rotation = 1;
// Writing into the property
Dim oImg
Set oImg = pMe.Items("/RImg0")
Dim nRotation
nRotation = oImg.Rotation
' Reading from the property
oImg.Rotation = 1
' Writing into the property