Re: [AD] auto convert bitmap mask to alpha channel

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


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




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/