• Returns a data URI containing a representation of the given image.

    Parameters

    • image: CanvasImageSource | ImageData

      The image object.

    Returns string