Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » 32Bit-BITMAP Blitting Alphachannel

This thread is locked; no one can reply to it. rss feed Print
32Bit-BITMAP Blitting Alphachannel
Krendor
Member #6,686
December 2005

Hi,

I have made a Truecolor 32Bit-BITMAP(tga) with an alphachannel
and I would show them with the function blit(...), but the
alphachannel was ignored.
Can anyone help me, how to use bitmaps with an alpha channel?

Krendor

gnolam
Member #2,030
March 2002
avatar

set_alpha_blender();
draw_trans_sprite(buffer, alpha_sprite, x, y);

And please read the relevant sections of the manual.

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

Krendor
Member #6,686
December 2005

yes, thanks. Now it works.

Krendor

Go to: