Creating a pixbuf from non-BMP image data
- From: Murray Cumming <murrayc murrayc com>
- To: gtk-list <gtk-list gnome org>
- Subject: Creating a pixbuf from non-BMP image data
- Date: Tue, 12 Jul 2005 17:04:56 +0200
gdk_pixbuf_new_from_file() can create a GdkPixbuf from various image
formats. But gdk_pixbuf_new_from_data() can only take BMP-formatted
images.
If I know, for instance, that my buffer contains a PNG image, how can I
create a GdkPixbuf for it, so I can display it? Do I really have to save
it to a temporary file?
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]