pixi.js
    Preparing search index...

    Interface ImageLikeAdvanced

    Interface for HTMLImageElement.

    interface ImageLike {
        complete: boolean;
        crossOrigin: string;
        currentSrc: string;
        height: number;
        onerror: (this: GlobalEventHandlers, ev: Event) => any;
        onload: (this: GlobalEventHandlers, ev: Event) => any;
        src: string;
        width: number;
        decode(): Promise<void>;
    }

    Hierarchy

    Index

    Properties

    complete: boolean

    Whether or not the image has completely loaded.

    crossOrigin: string

    The Cross-Origin Resource Sharing (CORS) setting to use when retrieving the image.

    currentSrc: string

    The URL of the image which is currently presented in the element it represents.

    height: number

    The height.

    onerror: (this: GlobalEventHandlers, ev: Event) => any
    onload: (this: GlobalEventHandlers, ev: Event) => any
    src: string

    The address or URL of the a media resource that is to be considered.

    width: number

    The width.

    Methods

    • Returns a Promise that resolves once the image is decoded.

      Returns Promise<void>