al_load_bitmap

ALLEGRO_BITMAP *al_load_bitmap(const char *filename)
Introduced in 5.0.0

Loads an image file into an ALLEGRO_BITMAP. The file type is determined by the extension.

Returns NULL on error.

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.

See also: al_load_bitmap_f, al_register_bitmap_loader, al_set_new_bitmap_format, al_set_new_bitmap_flags, al_init_image_addon

Examples: ex_bitmap, ex_bitmap_flip, ex_blend2, ex_blend_bench, ex_convert, ex_curl, ex_draw_bitmap, ex_dualies, ex_expose, ex_filter, ex_font, ex_fs_resize, ex_fs_window, ex_gldepth, ex_haiku, ex_icon, ex_iphone, ex_membmp, ex_mixer_pp, ex_mouse, ex_mouse_cursor, ex_mouse_events, ex_multiwin, ex_nodisplay, ex_noframe, ex_opengl_pixel_shader, ex_physfs, ex_pixelformat, ex_prim, ex_resize2, ex_rotate, ex_scale, ex_subbitmap, ex_transform


Most helpful discussions:

Other recent discussions: