Hi There!

Another set of Questions -

DirectFB offers a lot of options for transparency, and I am a bit
confused:

I can set a window's opacity using SetOpacity() -> I assume this is also
what is mapped to <meta>+<alt>+mouse 
Docs: "Set it to "0" to hide a window. Setting it to "0xFF" makes the
window opaque if it has no alpha channel."
I can also set a ColorKey for a window using SetColorKey() 
Docs: "If a pixel of the window matches this color the underlying window
or the background is visible at this point." 

How do these two settings affect each other? 
I observe that in the default setup, when I change a windows opacity, it
is the black areas of the window that become most transparent. The white
areas remain mostly opaque. Why is this?

Is there a way to set up the following modes?

A) Window blending based only on color key - ie all blue (#0000ff) areas
of a window are 100% transparent, all non-blue areas are 100% opaque.
B) Window blending based only on alpha value of window pixels - window
is blended according to values of the alpha channel. (Would this require
the window to use an ARGB drawing surface?).

Thanks for any help!

Richard Unger 


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

Reply via email to