# string Canvas.toDataURL(string type, number encoderOptions)
Start from base library version 2.11.0. Please remaining backward compatible.
with Promise style call: Not supported
Mini Program plugin: Support
Object that contains a picture presentation data URI . Can be used type Parameter whose type defaults to PNG Format.
# parameter
# string type
Image format by default image/png
# number encoderOptions
In the specified image format image/jpeg or image/In the case of webp, the 0 reach 1 Selects the quality of the picture within the range of. If the range is exceeded, the default value will be used 0.92。 Other parameters are ignored.