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:

ParameterTypeDescription
scaleFactor?number | undefinedThe scale factor to get the size for.

Returns: ElectronNativeImageSizeThe width and height of the image.