Documentation
    Preparing search index...

    Class ImageAsset

    A decoded image with an explicit lifetime (§83).

    Exists so that releasing the last reference in the asset manager actually frees the bitmap: the manager disposes assets that have dispose(), and a platform ImageBitmap only has close().

    Implements

    Index

    The decoded bitmap, for upload to a texture.

    • get height(): number

      Decoded height in pixels.

      Returns number

    • get isDisposed(): boolean

      Whether dispose has already closed the bitmap.

      Returns boolean

    • get width(): number

      Decoded width in pixels.

      Returns number

    • Closes the underlying bitmap. Idempotent (§83).

      Returns void