Thanks Mike for response. But still could not get anti-aliasing edge. Can anyone show a very simple example drawing an anti-aliased triangle or line?
-Jack --- On Thu, 10/29/09, Mark <mark...@gmail.com> wrote: From: Mark <mark...@gmail.com> Subject: Re: [directfb-dev] Anti-aliasing problem on drawing To: "Jack W" <ji...@yahoo.com> Cc: "directfb-dev" <directfb-dev@directfb.org> Date: Thursday, October 29, 2009, 5:10 PM On Thu, Oct 29, 2009 at 7:36 PM, Jack W <ji...@yahoo.com> wrote: 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? isn't that related to the fixel format.. perhaps that needs to be one of the color modes with alpha? not RGB32 (just curious, why is the alpha channel is unused in RGB32 according to the docs?) but something like ARGB? http://directfb.org/docs/DirectFB_Reference_1_4/types.html#DFBSurfacePixelFormat please do let me know if that worked for you. Thanks a lot. Jack Good luck, Mark -----Inline Attachment Follows----- _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
_______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev