al_clone_bitmap
ALLEGRO_BITMAP *al_clone_bitmap(ALLEGRO_BITMAP *bitmap)
Introduced in 5.0.0
Create a new bitmap with al_create_bitmap, and copy the pixel data from the old bitmap across.
See also: al_create_bitmap, al_set_new_bitmap_format, al_set_new_bitmap_flags
Examples: ex_bitmap, ex_blend2, ex_filter, ex_font, ex_logo, ex_premulalpha, ex_subbitmap
Most helpful discussions:
- [Android] Backbuffer sub-bitmap crash
- Allegro 5 crashes when using al_draw_bitmap inside a list container
- Scaling down runtime created bitmaps makes them transparent
- KrampusHack 2016
- al_save_bitmap_f() in std::thread?
- Over mouse function
- Just bored... ;)
- Allegro 5 - Bitmap Deferred Corruption(?)
- [a5] al_create_bitmap() not creating mipmap in OPENGL
- Does Aal_convert_bitmaps Preserve Bitmap Flags?
Other recent discussions:
- al_clone_bitmap() of backbuffer gives bad results with OGL
- What is the proper procedure for restoring bitmaps on Android?
- A threaded loading screen
- al_get_backbuffer does not work
- Threading bitmap loads
- [A5] how to use a bitmap as a pattern to fill a rectangular area?
- Simple C++ video player for non-photographic animation
- bitmap layering
- Multiple windows
- Toggle between fullscreen and windowed with alt+enter