I am confused about how use the alpha channel with two surfaces on a
blit.  I have a yuv  surface that I want to blit to an argb surface
but I want to keep the alpha value of the argb surface.  I have tried
several things, and this one that seems most logical clears my alpha
values

argb->SetDstBlendFunction(argb, DSBF_DESTALPHA);
argb->Blit(argb,yuv,NULL,0,0);

If it helps, the defaults are
        Source blend function: DSBF_SRCALPHA
        Destination blend function: DSBF_INVSRCALPHA

Any help would be appreciated.

Martin
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to