Function decode

  • Decode input data. Data format is automatically detected. Possible formats: png, jpeg and tiff.

    Parameters

    • data: ArrayBufferView

      Data to decode.

    Returns Image

    The decoded image.