List Info

Thread: how to make surface transparent in directfb




how to make surface transparent in directfb
user name
2007-03-20 02:26:42

i am developing GUI for an application. i want to  make srfaces transparent . how can i do it.


i created 3 surfaces. first one is primary surface that use for still images or background. the second surface (icon_text_surface) is used for displaying icon and text. ; third surface(cursor_surafce) display cursor image.

when i move cursor image from one position to another position (that means draw cursor image at new position) i get cursor image at new position as well as at old position. that i donn't want. if i cleared the curface_surface than it worked but it show only cursor image at new position. all still images and icon are changed to a blank screen that means i get only cursor image on the screen.

so how can i make surfaces tranparent or repaint only a small portion on the surafce without affecting whole surface?


JOY
Re: how to make surface transparent in directfb
user name
2007-03-20 03:21:40
> i created 3 surfaces. first one is primary surface that
use for still images
> or background. the second surface (icon_text_surface)
is used for displaying
> icon and text.  third surface(cursor_surafce) display
cursor image.

Why you dont want to use DirectFB's cursor ?
IDirectFBDisplayLayer::SetCursorShape()

You should use one of pixel formats with support of alpha
channel -
e.g ARGB, ARGB4444, ARGB15555 and so on


-- 
Best Regards
Nikita Egorov
NikeGogmail.com
NikeGovarma-el.com

_______________________________________________
directfb-users mailing list
directfb-usersdirectfb.org
http://mail.directfb.org/cgi-bin/mailman/listinf
o/directfb-users

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )