Skip to content

ICanvas.toBlob method

ICanvas › toBlob

Unofficial

Converts the canvas to a blob.

Signature:

toBlob(callback: (blob: Blob | null) => void, type?: string, quality?: number): void

Parameters:

ParameterTypeDescription
callback(blob: Blob | null) => voidCallback receiving the blob.
type?stringImage MIME type.
quality?numberImage quality.

Returns: void