Jiao wrote:
> all:
> I want to blit a RGB24 surface to an ARGB surface.for
example pixel RGB(128,128,128)+ARGB(100,0,0,0) --->
ARGB(100,128,128,128). is there a way to implement it or I
have some misunderstanding
The following should work:
argb_surface->SetBlittingFlags( DSBLIT_BLEND_ALPHACHANNEL
);
argb_surface->SetSrcBlendFunction( DSBF_ONE );
argb_surface->SetDstBlendFunction( DSBF_ONE );
argb_surface->Blit( rgb24_surface, ... );
--
Regards,
Claudio Ciccani
klan users.sf.net
http://directfb.org
http://sf.net/pro
jects/php-directfb
_______________________________________________
directfb-dev mailing list
directfb-dev directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/
directfb-dev
|