al_load_bitmap(3)

al_load_bitmap3

Allegro 5 api

Usage

#include <allegro5/allegro.h>
ALLEGRO_BITMAP *al_load_bitmap(const char *filename)

Overview

Loads an image file into a new ALLEGRO_BITMAP(3). The file type is determined by al_identify_bitmap(3), using the extension as a fallback in case identification is not possible.

Returns NULL on error.

This is the same as calling al_load_bitmap_flags(3) with a flags parameter of 0.

Note: the core Allegro library does not support any image file formats by default. You must use the allegro_image addon, or register your own format handler.

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.