• Create HTMLImageElement and load image file and waits for it to be loaded. Returns a promise which resolves after callback (which may be async) completes.

    Parameters

    • test: GPUTest
    • imageName: "four-colors.jpg" | "four-colors.png" | "four-colors.bmp" | "four-colors.webp" | "four-colors.gif" | "four-colors.avif" | "four-colors.ico" | "four-colors.svg"

      An valid imageName in kkImageInfo table .

    • callback: ((image) => unknown)

      Function to call when HTMLImageElement is loaded.

        • (image): unknown
        • Parameters

          • image: HTMLImageElement

          Returns unknown

    Returns Promise<void>

Generated using TypeDoc