Skip to content

ElectronCreateFromBufferOptions

Unofficial

Options for nativeImage.createFromBuffer.

Import:

import type { ElectronCreateFromBufferOptions } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface ElectronCreateFromBufferOptions

Properties

Property Type Description
height? number Required for bitmap buffers. The height of the image, in pixels.
scaleFactor? number The scale factor of the image.
width? number Required for bitmap buffers. The width of the image, in pixels.