Documentation
    Preparing search index...

    Interface ImageBitmapLike

    The decoded-image shape this package needs: dimensions, and a way to release the decoded memory.

    The DOM's ImageBitmap satisfies it structurally (it has width, height, and close()), so no adapter is needed around a real one.

    interface ImageBitmapLike {
        height: number;
        width: number;
        close(): void;
    }

    Implemented by

    Index
    height: number

    Decoded height in pixels.

    width: number

    Decoded width in pixels.

    • Releases the decoded pixels; idempotent in the DOM.

      Returns void