FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

display image button using import()

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
WasserDragoon



Joined: 29 Sep 2007
Posts: 23
Location: Germany

PostPosted: Thu Jul 31, 2008 11:20 am    Post subject: display image button using import() Reply with quote

Hi,
how I can display an image button without using new Image("file.png") ?
I would like to use the import() function...

Thanks,
WasserDragoon.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Thu Jul 31, 2008 12:27 pm    Post subject: Reply with quote

gdk.Pixbuf does allow you to create an image from the output of gdk-pixbuf-csource utility, it's output could be put in a file for use with import().

then you could do:
Code:
new Image(new Pixbuf(-1, imported_data.ptr, false))


See: http://library.gnome.org/devel/gdk-pixbuf/stable/gdk-pixbuf-creating.html#gdk-pixbuf-new-from-inline
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group