And also have a look at the wiki, http://www.directfb.org/wiki/index.php/Blending_HOWTO , which should answer this question as well.
Cheers,
Marc.
--
M.A.J.M. van Kempen (Marc), MsC CS
Philips Applied Technologies
[EMAIL PROTECTED] wrote on 2006-07-13 15:58:51:
> Michal Lebik wrote:
> > What flags should I use or maybe the cause of problem is different ?
>
> To have working ARGB -> ARGB composition you should use
> surfaces with premultiplied alpha data, e.g. create your
> source with DSCAPS_PREMULTIPLIED before loading the image.
>
> Then you should use these settings for composition:
>
> SetPorterDuff( DSPD_SRC_OVER )
> SetBlittingFlags( DSBLIT_BLEND_ALPHACHANNEL )
>
> If you don't have a premultiplied source you can add the
> DSBLIT_SRC_PREMULTIPLY flag to have it premultiplied on
> the fly each time, but I would prefer already premultiplied
> data if possible.
>
> --
> Best regards,
> Denis Oliver Kropp
>
> .------------------------------------------.
> | DirectFB - Hardware accelerated graphics |
> | http://www.directfb.org/ |
> "------------------------------------------"
>
> _______________________________________________
> directfb-users mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
_______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
