Skip to main content

window.PhysicalSize

A size represented in physical pixels.

Constructors#

constructor#

+ new PhysicalSize(width: number, height: number): PhysicalSize

Parameters:#

NameType
widthnumber
heightnumber

Returns: PhysicalSize

Defined in: window.ts:42

Properties#

height#

height: number

Defined in: window.ts:42


type#

type: string= 'Physical'

Defined in: window.ts:40


width#

width: number

Defined in: window.ts:41

Methods#

toLogical#

toLogical(scaleFactor: number): LogicalSize

Converts the physical size to a logical one.

Parameters:#

NameType
scaleFactornumber

Returns: LogicalSize

Defined in: window.ts:50