ElectronNativeImage.toPNG method
ElectronNativeImage › toPNG
Unofficial
Returns a buffer that contains the image'sPNG encoded data. Signature:
toPNG(options?: ElectronNativeImageScaleFactorOptions | undefined): BufferParameters:
| Parameter | Type | Description |
|---|---|---|
| options? | ElectronNativeImageScaleFactorOptions | undefined | Options for the PNG conversion including scaleFactor. |
Returns: Buffer — The PNG buffer.