Interface BITMAPAllegro

Bitmap object

Remarks

Structure of bitmap object returned from load_bitmap() and create_bitmap(). For every bitmap laoded or created, a canvas element is created. Loaded images are then drawn onto the canvas, so that you can easily manipulate images and everything is consistent. You can also load a single file two times and modify it differently for each instance.

1.2.2

interface BITMAP {
    canvas: HTMLCanvasElement;
    clipping: boolean;
    clipping_rect: CLIPPING_RECTANGLE;
    context: CanvasRenderingContext2D;
    h: number;
    is_screen: boolean;
    mem_type: "memory" | "system" | "video";
    parent: null | BITMAP;
    ready: boolean;
    type: "bmp";
    w: number;
}

Properties

canvas: HTMLCanvasElement
clipping: boolean
clipping_rect: CLIPPING_RECTANGLE
context: CanvasRenderingContext2D
h: number
is_screen: boolean
mem_type: "memory" | "system" | "video"
parent: null | BITMAP
ready: boolean
type: "bmp"
w: number

Generated using TypeDoc