GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Thu Jul 31, 2014 3:30 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: 2d mask question
PostPosted: Tue Jun 18, 2013 6:37 am 
Offline
Familiar Face

Joined: Tue Dec 20, 2011 3:27 pm
Posts: 14
Dear all,

i have the following issue:

I have a picture (png) with some circles with transparency outside of the circles and, after some pixels of border, also inside.

I would like to set this picture as a gtk window background, but i wouldn't the inner of the circle to be transparent but opaque. Is there a way ?

Actually, to set the window background i am using in order

gdk_pixbuf_new_from_file ()
gdk_pixbuf_render_pixmap_and_mask ()

gdk_drawable_get_size ()
gtk_widget_shape_combine_mask( )
gtk_widget_set_size_request()
gdk_window_set_back_pixmap()


Thanks, Regards,
Angelo


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group