JAVA Tech JAVA Technologies Co. Ltd. Marine Radio VERSION 3.0 Benutzerhandbuch

Seite von 88
 
 
39
39
39
39
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.
 
 
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. 
 
applyRotationArray() 
 
E.g. ViewONE.applyRotationArray();  
 
Applies the rotation array set up using the initializeRotationArray and setRotationArray 
methods to the current image.
 
 
getRotation() 
 
E.g. var angle = ViewONE.getRotation();  
 
Returns the angle of rotation as an integer. 
 
 
Method:
 
Method:
 
Method:
 
Method: