toDataURL

open fun toDataURL(format: String = "png"): String(source)

Returns a Data URL to this can be shown in an <img/> tag.