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().
dispose()
ImageBitmap
close()
Readonly
The decoded bitmap, for upload to a texture.
Decoded height in pixels.
Whether dispose has already closed the bitmap.
Decoded width in pixels.
ImageBitmapLike conformance; an alias for dispose.
Closes the underlying bitmap. Idempotent (§83).
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 platformImageBitmaponly hasclose().