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

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

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

Methods

  • Decodes the blob into a texture.

    Parameters

    • blob: Blob

      The blob to decode.

    • options: DecodeOptions

      The decoder options.

    Returns Promise<{
        max?: number;
        min?: number;
        texture: Texture;
    }>

    The decoded texture.