Docs

Bitmap.prototype.scale

The scale factor of the bitmap for high-DPI displays.

Example

let bitmap = new Bitmap(100, 50, 2)
bitmap.scale
2
let bitmap = new Bitmap(100, 50)
bitmap.scale
1
let bitmap = new Bitmap(50, 50, 3)
bitmap.scale
3