GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to save a image show in the GdkPixmap to the file?

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
luhuadeng
Familiar Face


Joined: 05 May 2008
Posts: 10

PostPosted: Tue May 13, 2008 9:33 am    Post subject: How to save a image show in the GdkPixmap to the file? Reply with quote

How to save a image show in the GdkPixmap to the file?
Back to top
Micah Carrick
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 481
Location: Portland, OR USA

PostPosted: Tue May 13, 2008 4:45 pm    Post subject: Reply with quote

You can convert from a GdkPixmap to a GdkPixbuf using gdk_pixbuf_get_from_drawable() and then you can save a GdkPixbuf to a file using gdk_pixbuf_save()... I think. Never tried myself.
Back to top
luhuadeng
Familiar Face


Joined: 05 May 2008
Posts: 10

PostPosted: Wed May 14, 2008 1:47 am    Post subject: Reply with quote

thanks it ok!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP