JAVA Tech VERSION 3.0 manual SetBackgroundImageEnabledtrue/false, IsBackgroundImageEnabled

Models: VERSION 3.0

1 88
Download 88 pages 5.41 Kb
Page 35
Image 35

Method:

(Pro-Only)

Method:

(Pro-Only)

setBackgroundImageEnabled(true/false)

E.g. ViewONE.setBackgroundImageEnabled(false);

This method is used to change the visibility of the COLD template image. A value of false will remove the template from view, and a value of true will show the template.

isBackgroundImageEnabled()

E.g. var inverted = ViewONE.isBackgroundImageEnabled();

Returns a Boolean ‘True’ if the COLD template is visible

Example JavaScript for opening a document with background templates

viewONE.initializeBackgroundImageArray(3) viewONE.setBackgroundImageArrayItem("http://...backimage1.tif" ,0); viewONE.setBackgroundImageArrayItem("http://...backimage2.tif" ,1); viewONE.setBackgroundImageArrayItem("http://...backimage3.tif" ,2); viewONE.useBackgroundImageArray(1);

viewONE.initializePageArray(3);

 

viewONE.setPageArray("http://....

page1.tiff", 0);

viewONE.setPageArray("http://....

page1.tif", 1);

viewONE.setPageArray("http://....

page1.tif", 2);

viewONE.setAnnotationFile("http://...annotations.ant");

viewONE.openPageArray(1); //open at page 1

35

Page 35
Image 35
JAVA Tech VERSION 3.0 manual SetBackgroundImageEnabledtrue/false, IsBackgroundImageEnabled