I am able to change the transparency of text drawn to fb0 by modifying the
values of fb2 manually (cat file > /dev/fb/2)

However when I draw an image on my primary surface (fb0) the transparency of
this image is not changed and always stays as opaque.  Here is some of my
code:

   static IDirectFBSurface *myimage= NULL;

    DFBCHECK (dfb->CreateImageProvider (dfb, "MyImage.PNG", &provider));
    DFBCHECK (provider->GetSurfaceDescription (provider, &dsc));  
    DFBCHECK (dfb->CreateSurface (dfb, &dsc, &myimage));
    myimage->SetBlittingFlags(myimage,DSBLIT_BLEND_ALPHACHANNEL);
    DFBCHECK (provider->RenderTo (provider, myimage, NULL));  
    provider->Release (provider);

   //Blit the left & right arrows to screen
    DFBCHECK (primary->Blit (primary, myimage, NULL, 20, 30));

What do I need to do to make this image also change like text does?
-- 
View this message in context: 
http://www.nabble.com/Transparency-of-image-not-changing-but-text-does..-tp20129870p20129870.html
Sent from the DirectFB Users mailing list archive at Nabble.com.

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

Reply via email to