Re: Re: Convert png inline into a gdk-pixbuf?



Hi,

one more question, please. Regarding your "clean-up". If i want to
continue to use the pixbuf but not the loader i do:

                    g_object_ref(pixbuf);
                    g_object_unref(loader);

Does this look good to you?

Till

----- original Nachricht --------

Betreff: Re: Convert png inline into a gdk-pixbuf?
Gesendet: Do, 09. Jul 2009
Von: David NeÄ?as<yeti physics muni cz>

On Thu, Jul 09, 2009 at 08:46:39AM +0200, Till Harbaum wrote:
How can i decode a png image stored in a memory buffer into a gdk-pixmap
without
saving it in a file during that process?

Create a GdkPixbufLoader with gdk_pixbuf_loader_new_with_type(), pass
the data with gdk_pixbuf_loader_write(), finish with
gdk_pixbuf_loader_close(), get the pixbuf with
gdk_pixbuf_loader_get_pixbuf(), clean-up.

Yeti



--- original Nachricht Ende ----




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