The information in this topic may be out of date. The current SDK reference guide has moved here.

setScaleRatio method

Class: EyesPlatform: NightwatchLanguage: JavaScript SDK:

Use this method to set the scale ratio to be applied to images before matching.

Typically used to compensate for different vertical and horizontal pixels density on some devices.

Syntax

eyes.setScaleRatio(scaleRatio);

Parameters

scaleRatio
Type:number
The scale ratio to use.

Return value

Type: void