---
name: "al_convert_mask_to_alpha"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_convert_mask_to_alpha/3alleg5"
---

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

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(3alleg5)
