Interface ImageData

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

This interface is inspired by the web ImageData interface.

interface ImageData {
    path?: string;
    get data(): Uint8Array;
    get height(): number;
    get width(): number;
}

Properties

Accessors

Properties

path?: string

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

Accessors