Anyone any suggestions on this?

---------- Original message ----------
From: Mark Adams <[EMAIL PROTECTED]>
Date: 11-Aug-2006 18:58
Subject: Transparency in rendered text
To: [email protected]


I wonder if anyone can shed any light on a problem I'm having.

I'm rendering text on a DSPF_ARGB4444 surface in system memory using
surface->DrawString() over an opaque background.  I'm finding that if
I then look at the result via surface->Dump(), the pixels around the
edge of the characters have an alpha value less than 255.

100% foreground pixels have alpha=255 as do 100% background pixels,
but pixels that are part of the anti-aliasing have an alpha of around
200.

The surface I'm rendering to has no surface capabilities set and the
IDirectFBFont object in use was created with attributes DFFA_NONE.

I initially suspected something to do with my destination surface not
being alpha premultipled but thinking further I can't see how that
could be an issue because the destination pixels are all opaque
initially.

Any thoughts?

Regards,

Mark

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to