Function readImg

  • Read an image from an HTML image source.

    Parameters

    • img: OffscreenCanvas | ImageBitmap | HTMLCanvasElement | HTMLImageElement | HTMLVideoElement

      Image source such as an or element.

    Returns Image

    The read image.