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:
- images dont load [a5] (1)
- linking on ubuntu
- Using Sine And Cosine For Rotation
- Shooting Ball From Rotating Bitmap
- Saving Bitmaps
- Problem with al_creat_bitmap
- Mouse Click Inside Timer Function
- A5 Fullscreen Vs Windowed
- Convert *bitmap to char buffer
- al_load_bitmap question
Other recent discussions:
- MOUSE question
- A shader that sets transparancy
- Having Trouble with exit(1) - Stalling Program
- My second game, space invader simplified
- Vivace extra points. Its there a better way of doing this one.
- Bad File Descriptor
- Multiple layer scrolling problem
- ALLEGRO_EVENT_DISPLAY_SWITCH_OUT
- Segfault in al_show_native_file_dialog()
- loading files from a diialogue