Class: ImageIO
Extends
TaskIO
<"image"
,string
>
Constructors
new ImageIO()
new ImageIO(raw: RawTaskIO<"image", string>): ImageIO
Parameters
Parameter | Type |
---|---|
|
|
Returns
Inherited from
Properties
raw
readonly raw: RawTaskIO<"image", string>;
Inherited from
Accessors
arrayBuffer
get arrayBuffer(): ArrayBuffer
Returns
ArrayBuffer
blob
get blob(): Blob
Returns
Blob
buffer
get buffer(): Buffer
Returns
Buffer
data
get data(): RawData
Returns
RawData
Inherited from
dataUrl
get dataUrl(): `data:image/png;base64,${string}`
Returns
`data:image/png;base64,${string}`
key
get key(): Key
Returns
Key
Inherited from
Methods
toJSON()
toJSON(): RawTaskIO<"image", string>
Returns
RawTaskIO
<"image"
, string
>
Inherited from
create()
static create(image: ImageType): Promise<ImageIO>
Parameters
Parameter | Type |
---|---|
|
Returns
Promise
<ImageIO
>