Creating a pixbuf from non-BMP image data



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]