[gtkmm] loading image



How do I load an image (e.g. ppm, pgm, jpg) from the disk? The examples
I've seen only create pixmaps from an image.xpm file. I'm using
gtkmm-1.2.10 and Gtk::Image doesn't seem to have a load() function.  I
grep'ed -r after Image and load in the examples directory and nothing.

I suppose I could do it with GdkImlibImage and gdk_imlib_load_image(), but
wouldn't that defeat the purpose of gdkmm? Is there a reason why an Image
class does not have any I/O functions? I'd really like to be able to load
more just than icons.

Thanks for any help!










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