ElectronAddRepresentationOptions
Unofficial
Options for NativeImage.addRepresentation.
Import:
import type { ElectronAddRepresentationOptions } from '@obsidian-typings/obsidian-public-latest';Signature:
export interface ElectronAddRepresentationOptionsProperties
| Property | Type | Description | |
|---|---|---|---|
| buffer? | Buffer | The buffer containing the raw image data. | |
| dataURL? | string | The data URL containing either a base 64 encoded PNG or JPEG image. | |
| height? | number | The height of the image representation. Required if a bitmap buffer is specified as buffer. | |
| scaleFactor | number | The scale factor to add the image representation for. | |
| width? | number | The width of the image representation. Required if a bitmap buffer is specified as buffer. |