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

[EMAIL PROTECTED]
http://directfb.org
http://sf.net/projects/php-directfb

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

Reply via email to