Skip to content

ICanvas.toBlob method

ICanvas › toBlob

Unofficial

Converts the canvas to a blob.

Signature:

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

Parameters:

ParameterTypeDescription
callback(blob: Blob | null) => voidCallback receiving the blob.
type?string | undefinedImage MIME type.
quality?number | undefinedImage quality.

Returns: void