Function imageUrlToImageData

  • Downloads/parse the image from an url/data url and draw to an ImageData object.

    Parameters

    • url: string

      url or data url of the image

    Returns Promise<ImageData>

    ImageData object

    See also imageBitmapToBase64