Method: initializeRotationArray(int size)
E.g. ViewONE.initializeRotationArray(4);
Initializes the rotation array, used for setting the rotation of each page of the current image, to the given size.
Method: setRotationArray(int angle, int page)
E.g. var ok = ViewONE.setRotationArray(90, 0);
Sets the rotation for given page to the given angle. The pages are indexed from 0, so the first page is zero, the second is 1 etc.
The specified angle should be one of 0, 90, 180 or 270.
The JavaScript method initializeRotationArray should be used to set the size of the rotation array before this method is called.
The method returns true if the page rotation was successfully set or false if the set failed, for instance if the specified page is an invalid index in the rotation array initialized using initializeRotationArray.
Method: applyRotationArray()
E.g. ViewONE.applyRotationArray();
Applies the rotation array set up using the initializeRotationArray and setRotationArray methods to the current image.
Method: getRotation()
E.g. var angle = ViewONE.getRotation();
Returns the angle of rotation as an integer.
39