---
name: "al_convert_memory_bitmaps"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_convert_memory_bitmaps"
---

# al\_convert\_memory\_bitmaps(3)

Allegro 5 API

## NAME

al\_convert\_memory\_bitmaps - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void al_convert_memory_bitmaps(void)
  ```

## DESCRIPTION

If you create a bitmap when there is no current display (for example because you have not called [al\_create\_display(3)](/al_create_display/3.md) in the current thread) and are using the ALLEGRO\_CONVERT\_BITMAP bitmap flag (which is set by default) then the bitmap will be created successfully, but as a memory bitmap. This function converts all such bitmaps to proper video bitmaps belonging to the current display.

Note that video bitmaps get automatically converted back to memory bitmaps when the last display is destroyed.

This operation will preserve all bitmap flags except ALLEGRO\_VIDEO\_BITMAP and ALLEGRO\_MEMORY\_BITMAP.

## SINCE

5\.2.0

## SEE ALSO

[al\_convert\_bitmap(3)](/al_convert_bitmap/3.md), [al\_create\_bitmap(3)](/al_create_bitmap/3.md)
