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:

Other recent discussions: