ElectronNativeImageModule.createFromBitmap method
ElectronNativeImageModule › createFromBitmap
Unofficial
Creates a newNativeImage instance from buffer that contains the raw bitmap pixel data returned by toBitmap(). The specific format is platform-dependent. Signature:
createFromBitmap(buffer: Buffer, options: ElectronCreateFromBitmapOptions): ElectronNativeImageParameters:
| Parameter | Type | Description |
|---|---|---|
| buffer | Buffer | The raw bitmap pixel data. |
| options | ElectronCreateFromBitmapOptions | Options describing the bitmap dimensions and scale factor. |
Returns: ElectronNativeImage — The created image.