---
name: "exalpha"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/exalpha"
---

# exalpha(3alleg)

Creating and using 32 bit RGBA sprites. Allegro game programming library.

## NAME

exalpha - Creating and using 32 bit RGBA sprites. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**Example exalpha**

## DESCRIPTION

This program demonstrates how to use the 32 bit RGBA translucency functions to store an alpha channel along with a bitmap graphic.  Two images are loaded from disk. One will be used for the background and the other as a sprite. The example generates an alpha channel for the sprite image, composing the 32 bit RGBA bitmap during runtime, and draws it at the position of the mouse cursor.

## SEE ALSO

[**BITMAP**(3alleg)](/BITMAP/3alleg.md), [**END\_OF\_MAIN**(3alleg)](/END_OF_MAIN/3alleg.md), [**SCREEN\_H**(3alleg)](/SCREEN_H/3alleg.md), [**SCREEN\_W**(3alleg)](/SCREEN_W/3alleg.md), [**allegro\_error**(3alleg)](/allegro_error/3alleg.md), [**allegro\_init**(3alleg)](/allegro_init/3alleg.md), [**allegro\_message**(3alleg)](/allegro_message/3alleg.md), [**blit**(3alleg)](/blit/3alleg.md), [**clear\_keybuf**(3alleg)](/clear_keybuf/3alleg.md), [**create\_bitmap**(3alleg)](/create_bitmap/3alleg.md), [**destroy\_bitmap**(3alleg)](/destroy_bitmap/3alleg.md), [**draw\_trans\_sprite**(3alleg)](/draw_trans_sprite/3alleg.md), [**drawing\_mode**(3alleg)](/drawing_mode/3alleg.md), [**font**(3alleg)](/font/3alleg.md), [**getb**(3alleg)](/getb/3alleg.md), [**getg**(3alleg)](/getg/3alleg.md), [**getpixel**(3alleg)](/getpixel/3alleg.md), [**getr**(3alleg)](/getr/3alleg.md), [**install\_keyboard**(3alleg)](/install_keyboard/3alleg.md), [**install\_mouse**(3alleg)](/install_mouse/3alleg.md), [**install\_timer**(3alleg)](/install_timer/3alleg.md), [**keypressed**(3alleg)](/keypressed/3alleg.md), [**load\_bitmap**(3alleg)](/load_bitmap/3alleg.md), [**makecol**(3alleg)](/makecol/3alleg.md), [**mouse\_x**(3alleg)](/mouse_x/3alleg.md), [**mouse\_y**(3alleg)](/mouse_y/3alleg.md), [**putpixel**(3alleg)](/putpixel/3alleg.md), [**rectfill**(3alleg)](/rectfill/3alleg.md), [**replace\_filename**(3alleg)](/replace_filename/3alleg.md), [**screen**(3alleg)](/screen/3alleg.md), [**set\_alpha\_blender**(3alleg)](/set_alpha_blender/3alleg.md), [**set\_color\_conversion**(3alleg)](/set_color_conversion/3alleg.md), [**set\_color\_depth**(3alleg)](/set_color_depth/3alleg.md), [**set\_gfx\_mode**(3alleg)](/set_gfx_mode/3alleg.md), [**set\_multiply\_blender**(3alleg)](/set_multiply_blender/3alleg.md), [**set\_write\_alpha\_blender**(3alleg)](/set_write_alpha_blender/3alleg.md), [**solid\_mode**(3alleg)](/solid_mode/3alleg.md), [**stretch\_blit**(3alleg)](/stretch_blit/3alleg.md), [**textprintf\_ex**(3alleg)](/textprintf_ex/3alleg.md)
