Hi,

Denis Oliver Kropp wrote:
> michael wrote:
>> Hi,
>>
>> I would like to have transparent object like a drawarea using 
>> gtk-directfb and I think that I need this
>> function gdk_window_shape_combine_mask. It is possible to implement 
>> using directfb? I look at the code
>> and I see that is not implemented. Any suggest to implement it?
>
> You could use a window with alpha if you have acceleration or fast CPU :)
>
> Otherwise, I'd suggest to implement it using DWOP_COLORKEYING.
>
> http://www.directfb.org/docs/DirectFB_Reference/types.html#DFBWindowOptions
> http://www.directfb.org/docs/DirectFB_Reference/IDirectFBWindow_SetColorKey.html
>
>
> But it might be difficult to avoid using the color key as a normal drawing 
> color
> in all cases, e.g. using gradients or (scaled) images.
>
>
> Now that DirectFB supports source masks during blitting, we could add support
> for window masks using A1 in a separate surface attached to the window...
>
First I would like to do outside the gdk-directfb implementation. If a take
the directfb Window surface using the GDK_WINDOW_IMPL_DIRECTFB, than I 
can change
the COLORKEING for that surface, so the directfb subsystem when compose 
the window to
send to the screen remove the key color from the GdkWindow. It is correct?

Regards Michael


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

Reply via email to