toBlob

open fun toBlob(callback: (Blob?) -> Unit)(source)

Direct access to the .toBlob() function of the underlying canvas.

Syntactic sugar for nativeImage().toBlob(callback).