[maemo-developers] GtkPixbuf from Char buffer
From: Arto Karppinen arto.karppinen at mail.suomi.netDate: Sun Oct 19 23:32:48 EEST 2008
- Previous message: GtkPixbuf from Char buffer
- Next message: GtkPixbuf from Char buffer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This looks like what we need. Thanks. Kemal Hadimli wrote: >>From Maemopad+ (https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/unified/src/ui/callbacks.c?revision=94&root=maemopadplus&view=markup > ) > > GdkPixbufLoader *pl = gdk_pixbuf_loader_new_with_type("png", NULL); > GError *err = NULL; > gdk_pixbuf_loader_write(pl, (guchar *) blob, blobsize, &err); > f (err != NULL) > { > //error > g_error_free(err); > return; > } > gdk_pixbuf_loader_close(pl, NULL); > GdkPixbuf *pixbuf = gdk_pixbuf_loader_get_pixbuf(pl); > > if (GDK_IS_PIXBUF(pixbuf)) > { > //do stuff > } > g_object_unref(pl); > > -- Arto Karppinen ------------------------------ arto.karppinen at iki.fi
- Previous message: GtkPixbuf from Char buffer
- Next message: GtkPixbuf from Char buffer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]