Hello Rodrigo,



Here is a working example.


       v->vwindow->SetOpacity(v->vwindow, 0x00 );

       v->vwindow->SetOptions(v->vwindow, DWOP_SCALE);

       v->vwindow->ResizeSurface(v->vwindow,v->wdesc.width,v->wdesc.height);

               //v->vwindow->CreateEventBuffer( v->vwindow, &dfbbuffer );


       //Need to fix draw rectangle call

        //draw_frame(v);


        /* update affected views */

       if (do_redraw) draw_rec( first_view, NULL, v->buf, x1, y1, x2, y2 );

       v->vwindow->SetOpacity(v->vwindow, 0xFF );

Monday, February 18, 2008, 3:59:09 PM, you wrote:


>

Hi there,


Is there anyway to change the opacity of a surface after it has been created?

I though i could create a window, set its opacity, get its surface and blit the original surface to this one, but I don't know if it would work.

Thanks in advance,


Rodrigo Araujo


P.S.: I'm sorry for the other email, sent it wrong. 





-- 

Best regards,

 Mark                            mailto:[EMAIL PROTECTED]

_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to