Function load_bitmap

  • Allegro

    Loads bitmap from file

    Parameters

    • filename: string

      URL of image

    • Optional pal: RGB

    Returns BITMAP

    bitmap object, or -1 on error

    1.11.1

    Remarks

    Loads image from file asynchronously. This means that the execution won't stall for the image, and it's data won't be accessible right off the start. You can check for bitmap object's 'ready' member to see if it has loaded, but you probably should avoid stalling execution for that, as JS doesn't really like that.

Generated using TypeDoc