Skip to content

ElectronCreateFromBufferOptions

Unofficial

Options for nativeImage.createFromBuffer.

Import:

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

Signature:

export interface ElectronCreateFromBufferOptions

Properties

PropertyTypeDescription
height?numberRequired for bitmap buffers. The height of the image, in pixels.
scaleFactor?numberThe scale factor of the image.
width?numberRequired for bitmap buffers. The width of the image, in pixels.