getScale()

Returns the scale value as an integer where 0=bestfit, 1=Fit-to-Width and 2=fit-to-Height.

Sample syntax

var scale = ViewONE.getScale();