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): Buffer

Parameters:

ParameterTypeDescription
options?ElectronNativeImageScaleFactorOptionsOptions for the bitmap conversion including scaleFactor.

Returns: Buffer — The bitmap buffer.