Skip to content

ElectronNativeImage.toBitmap method

ElectronNativeImage › toBitmap

Unofficial

Returns a buffer that contains a copy of the image's raw bitmap pixel data.

Signature:

toBitmap(options?: ElectronNativeImageScaleFactorOptions | undefined): Buffer

Parameters:

Parameter Type Description
options? ElectronNativeImageScaleFactorOptions | undefined Options for the bitmap conversion including scaleFactor.

Returns: BufferThe bitmap buffer.