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:

ParameterTypeDescription
options?ElectronNativeImageScaleFactorOptions | undefinedOptions for the bitmap conversion including scaleFactor.

Returns: BufferThe bitmap buffer.