Player input from image

Supports the same mime-types as img.src

Hierarchy

  • Image

Implements

Constructors

Constructors

  • Creates Image input from the given Url

    Parameters

    • source: string

    Returns Image

    Example

    const photo = new Image("https://placekitten.com/200/300")
    
  • Creates Image input from the given Blob

    Parameters

    • source: Blob

    Returns Image

    Example

    const file = $("#file-input").files[0] // File is subclass of Blob
    const photo = new Image(file)