Skip to content

ImageData

Defined in: api/node/typescript/index.ts:119 ↗

An image data type that can be displayed by the Image element.

This interface is inspired by the web ImageData ↗ interface.

readonly optional path?: string

Defined in: api/node/typescript/index.ts:124 ↗

Returns the path of the image, if it was loaded from disk. Otherwise the property is undefined.

get data(): Uint8Array

Defined in: api/node/typescript/index.ts:129 ↗

Returns the image as buffer.

Uint8Array


get height(): number

Defined in: api/node/typescript/index.ts:139 ↗

Returns the height of the image in pixels.

number


get width(): number

Defined in: api/node/typescript/index.ts:134 ↗

Returns the width of the image in pixels.

number


© 2026 SixtyFPS GmbH