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
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to