Skip to main content

Class: Image

Extends

  • BaseType<string>

Constructors

new Image()

new Image(raw: string): Image

Parameters

ParameterType

raw

string

Returns

Image

Inherited from

BaseType<string>.constructor

Properties

raw

readonly raw: string;

Inherited from

BaseType.raw

Accessors

arrayBuffer

get arrayBuffer(): ArrayBuffer

Returns

ArrayBuffer


blob

get blob(): Blob

Returns

Blob


buffer

get buffer(): Buffer

Returns

Buffer


dataUrl

get dataUrl(): `data:image/png;base64,${string}`

Returns

`data:image/png;base64,${string}`

Methods

toJSON()

toJSON(): string

Returns

string

Inherited from

BaseType.toJSON