RE: Alpha Blending with EuAllegro
Lewis Townsend wrote:
>
> Thanks Brian,
>
> I guess I just had a couple of the parameters backwards in my attempts.
> Now, I have something that works.
> Instead of combining stretchblit and transblit I will probably
> combine transblit and maskblit.
> It makes more sense for my aplication.
> Question: how can I use the apha channel from a bmp file to produce
> variable transparancy?
> Example: an image of a man
> the man is solid and opaque
> the rest of the image is transparent
> and the pixels along the man's outline are semitransparent
> to produce an anti-alliased effect (smooth outlines)
>
> TIA,
> Lewy T
>
> PS I uploaded a playable demo of the game today to Euphoria's website.
>
I didn't know that the bmp format supported alpha-channel content; but
even if I did, I wouldn't know how to use it anyway. I'll have to learn
more about how this all works before I can give you an answer. But even
if I figure out an answer, I'm not sure you'll get the desired anti-
aliasing effect with that approach.
-- Brian
(d/l'ding demo now and looking forward to it...)
|
Not Categorized, Please Help
|
|