Le jeudi 29 octobre 2009 à 11:36 -0700, Jack W a écrit : > Hi All, > > I tried the following codes but did not see anti-aliasing edge. > ------------------------------------------------------------------------------------------- > ...... > primary->SetDrawingFlags(primary, SDRAW_BLEND); > > DFBSurfaceRenderOptions render_options = DSRO_ANTIALIAS; > > primary->SetRenderOptions(primary, render_options); > > primary->SetColor (primary, 0xff, 0xff, 0x00, 0xff) > > primary->FillTriangle( ...... ) > ...... > ------------------------------------------------------------------------------------------- > > In the DirectFB reference, DSRO_ANTIALIAS needs "alphablend must be > enabled". How to set the alphablend to achieve anti-aliasing edge? > > Thanks a lot. > >
Isn't it related to the blitting/drawing flags ? (DSBLIT_BLEND_ALPHACHANNEL/DSBLIT_BLEND_COLORAPHA and DSDRAW_BLEND) -- Lionel Landwerlin <llandwer...@gmail.com> _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev