---
name: "al_convert_mask_to_alpha"
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_mask_to_alpha"
---

# al\_convert\_mask\_to\_alpha(3)

Allegro 5 API

## NAME

al\_convert\_mask\_to\_alpha - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void al_convert_mask_to_alpha(ALLEGRO_BITMAP *bitmap, ALLEGRO_COLOR mask_color)
  ```

## DESCRIPTION

Convert the given mask color to an alpha channel in the bitmap. Can be used to convert older 4.2-style bitmaps with magic pink to alpha-ready bitmaps.

## SEE ALSO

[ALLEGRO\_COLOR(3)](/ALLEGRO_COLOR/3.md)
