I think you should try to use the Porter Duff rules. http://directfb.org/docs/DirectFB_Reference_1_3/IDirectFBSurface_SetPorterDuff.html http://directfb.org/docs/DirectFB_Reference_1_3/types.html#DFBSurfacePorterDuffRule
If it doesn't help you need to implement your own blending function. > 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 -- Best Regards Nikita Egorov nik...@gmail.com nik...@varma-el.com _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users