Skip to content

toDataURL

toDataURL(canvasEl, format, quality): string

Defined in: src/util/misc/dom.ts:58

since 2.6.0 moved from canvas instance to utility. possibly useless

HTMLCanvasElement

to copy size and content of

ImageFormat

‘jpeg’ or ‘png’, in some browsers ‘webp’ is ok too

number

<= 1 and > 0

string

data url