GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Oct 24, 2014 11:53 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How to load SVG to GtkImage from memory buffer?
PostPosted: Fri Oct 21, 2011 11:47 pm 
Offline
Familiar Face

Joined: Tue Apr 12, 2011 12:48 pm
Posts: 8
Location: PL
I have a SVG image in variable const char *buffer. How to load it into GtkImage?

Now I save this buffer into a file and load it by gtk_image_new_from_file("file.svg"); - but it is not effective.


Top
 Profile  
 
 Post subject: Re: How to load SVG to GtkImage from memory buffer?
PostPosted: Fri Oct 21, 2011 11:58 pm 
Offline
Never Seen the Sunlight

Joined: Wed Jul 23, 2008 10:31 am
Posts: 2406
Location: Slovenia
Hi.

Use GdkPixbufLoader to load image directly from RAM.

Cheers,
Tadej


Top
 Profile  
 
 Post subject: Re: How to load SVG to GtkImage from memory buffer?
PostPosted: Sat Oct 22, 2011 3:04 am 
Offline
Familiar Face

Joined: Tue Apr 12, 2011 12:48 pm
Posts: 8
Location: PL
Thanks Tadej, it works!


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 1 guest


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