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 isDisposed(): boolean

      Whether dispose has already closed the bitmap.

      Returns boolean

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

      Returns void