GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Tue Jul 29, 2014 10:43 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: gtk image process
PostPosted: Sat Nov 26, 2011 1:17 pm 
Offline

Joined: Sat Nov 26, 2011 1:07 pm
Posts: 2
i have recently used gdk_pixbuf to gchar to get all the pixel data from a pixbuf image.
but i can not convert gchar pixel data into a pixbuf or image.

--------------somebody help please!!!!!!!


Top
 Profile  
 
 Post subject: Re: gtk image process
PostPosted: Sun Nov 27, 2011 5:33 am 
Offline
GTK+ Guru

Joined: Sun Apr 06, 2008 6:43 pm
Posts: 286
Location: Fortress of solitude
maybe gdk_pixbuf_new_from_xpm_data?

_________________
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.


Top
 Profile  
 
 Post subject: Re: gtk image process
PostPosted: Sun Nov 27, 2011 6:54 am 
Offline

Joined: Sat Nov 26, 2011 1:07 pm
Posts: 2
its get const char **
but i have guchar *
what can i do?
---------------------------------


Top
 Profile  
 
 Post subject: Re: gtk image process
PostPosted: Sun Nov 27, 2011 2:30 pm 
Offline
GTK+ Guru

Joined: Sun Apr 06, 2008 6:43 pm
Posts: 286
Location: Fortress of solitude
If the file is real xpm, get the file contents with g_file_get_contents, and later use it on the gdk function I posted to you.

_________________
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group