Skip to content

ElectronNativeImage.getSize method

ElectronNativeImage › getSize

Unofficial

Returns the size of the image. If scaleFactor is passed, this returns the size corresponding to the image representation most closely matching the passed value.

Signature:

getSize(scaleFactor?: number | undefined): ElectronNativeImageSize

Parameters:

Parameter Type Description
scaleFactor? number | undefined The scale factor to get the size for.

Returns: ElectronNativeImageSizeThe width and height of the image.