ElectronNativeImage.getSize method
ElectronNativeImage › getSize
Unofficial
Returns the size of the image. IfscaleFactor is passed, this returns the size corresponding to the image representation most closely matching the passed value. Signature:
getSize(scaleFactor?: number | undefined): ElectronNativeImageSizeParameters:
| Parameter | Type | Description |
|---|---|---|
| scaleFactor? | number | undefined | The scale factor to get the size for. |
Returns: ElectronNativeImageSize — The width and height of the image.