1al_draw_tinted_bitmap(3)   Library Functions Manual   al_draw_tinted_bitmap(3)
2
3
4

NAME

6       al_draw_tinted_bitmap
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              void al_draw_tinted_bitmap(ALLEGRO_BITMAP *bitmap, ALLEGRO_COLOR tint,
12                 float dx, float dy, int flags)
13

DESCRIPTION

15       Like al_draw_bitmap(3) but multiplies all colors in the bitmap with the
16       given color.  For example:
17
18              al_draw_tinted_bitmap(bitmap, al_map_rgba_f(1, 1, 1, 0.5), x, y, 0);
19
20       The above will draw the bitmap 50% transparently.
21
22              al_draw_tinted_bitmap(bitmap, al_map_rgba_f(1, 0, 0, 1), x, y, 0);
23
24       The above will only draw the red component of the bitmap.
25
26
27
28Allegro reference manual                              al_draw_tinted_bitmap(3)
Impressum