ElectronNativeImage.resize method
ElectronNativeImage › resize
Unofficial
Returns a resized copy of the image. If only theheight or the width is specified then the current aspect ratio is preserved in the resized image. Signature:
resize(options: ElectronResizeOptions): ElectronNativeImageParameters:
| Parameter | Type | Description |
|---|---|---|
| options | ElectronResizeOptions | Options for the resize including width, height, and quality. |
Returns: ElectronNativeImage — The resized image.