Method: getBrightness()

E.g. var percent = ViewONE.getBrighness();

Returns the current brightness percentage setting (0-100).

Method: setContrast(percent)

E.g. ViewONE.setContrast(40);

This method sets the contrast of the image displayed. The value represents a percentage from 0-100, with 50 being the default value. 0 = minimum contrast (flat) and 100 = maximum brightness (not flat!).

If the document is closed when this method is called, the default for all pages is modified. If the document is open when this method is called, the individual page is modified only.

Method: resetContrast()

E.g. ViewONE.resetContrast ();

This method resets the contrast level to 50% (the default value).

If the document is closed when this method is called, the default for all pages is modified. If the document is open when this method is called, the individual page is modified only.

Method: getContrast()

E.g. var percent = ViewONE.getContrast();

Returns the current contrast percentage setting (0-100).

45

Page 45
Image 45
JAVA Tech VERSION 3.0 manual Method getBrightness, Method setContrastpercent, Method resetContrast, Method getContrast