JAVA Tech VERSION 3.0 IsEnhancetrue/false, SetEnhanceModemode, GetEnhanceMode, SetRotationangle

Models: VERSION 3.0

1 88
Download 88 pages 5.41 Kb
Page 38
Image 38

Method:

Method:

Method: (V3-Only)

Method:

isEnhance(true/false)

E.g. var enhance = ViewONE.isEnhance();

Returns a Boolean ‘True’ if enhance is on, ‘False’ if it is off.

setEnhanceMode(mode)

E.g. ViewONE.setEnhanceMode(1);

Specifies which anti-aliasing algorithm to use…

0:Off (all image formats)

1:Weighted averaging (monochrome), averaging (24 bit color)

2:Averaging (monochrome), averaging (24 bit color)

3:Scale-to-black (monochrome), averaging (24 bit color)

Note: This method can be used to turn on/off Anti-Aliasing and so there is no need to use both this and setEnhance methods together.

getEnhanceMode()

E.g. var state = ViewONE.getEnhanceMode();

Returns the current enhance state.

setRotation(angle)

E.g. ViewONE.setRotation(90);

Specifies the angle at which pages are displayed. Values of 90, 180, or 270 are accepted. The default is 0.

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.

38

Page 38
Image 38
JAVA Tech VERSION 3.0 manual IsEnhancetrue/false, SetEnhanceModemode, GetEnhanceMode, SetRotationangle