like2d
    Preparing search index...

    Interface ImageHandle

    An image that can be drawn using Graphics.draw

    Unlike raw HTMLImageElement, there is no need to wait for it to load. If the image isn't loaded, it simply won't draw it at all.

    If you're planning on loading many large images, simply preload these image handles beforehand so that they're ready.

    interface ImageHandle {
        path: string;
        getElement(): HTMLImageElement | null;
        isReady(): boolean;
        ready(): Promise<void>;
        get size(): Vector2;
    }
    Index

    Accessors

    Methods

    Properties

    Accessors

    Methods

    Properties

    path: string