Re: Creating GdkPixbuf from PNG data



Le vendredi 07 janvier 2005 �2:43 -0800, Pramod Patangay a �it :
> Hi,
> 
> I have PNG data in memory which is essentially the
> contents of a png file. I need to create a GdkPixbuf
> from this data. How can I do this?

If you can access the png file, you can use gdk_pixbuf_new_from_file.
Otherwise, if you want to use the version already in memory,
gdk_pixbuf_new_from_data might work.

Consult the GdkPixbuf documentation at
http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/index.html




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]