Class ImageFormatAbstract

Base class for image decoders. To implement your own image decoder, subclass this class.

Hierarchy

Constructors

Properties

Methods

Constructors

  • Parameters

    • flipY: boolean
    • dataType: TextureDataType

    Returns ImageFormat

Properties

dataType: TextureDataType
flipY: boolean
isImageFormat: boolean = true
type: string

Methods

  • Decodes the blob into a texture.

    Parameters

    • blob: Blob

      The blob to decode.

    • options: DecodeOptions

      The decoder options.

    Returns Promise<Texture>

    The decoded texture.

Generated using TypeDoc