Re: [AD] auto convert bitmap mask to alpha channel |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: "Coordination of admins/developers of the game programming library Allegro" <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] auto convert bitmap mask to alpha channel
- From: Matthew Leverton <meffer@xxxxxxxxxx>
- Date: Wed, 5 Aug 2009 12:20:30 -0500
On Wed, Aug 5, 2009 at 6:13 AM, Elias
Pschernig<elias.pschernig@xxxxxxxxxx> wrote:
> ALLEGRO_FONT *load_a4_font(char const *filename)
> {
> ALLEGRO_BITMAP *bitmap = al_load_bitmap(filename);
> al_convert_mask_to_alpha(bitmap, al_map_rgb(255, 0, 255));
> return al_grab_font_from_bitmap(bitmap);
> }
>
al_grab_font_from_bitmap() has three parameters, according to the
online documentation.
--
Matthew Leverton