On Thu, Jul 24, 2003 at 03:21:53PM +0200, Carlos Garcia Campos wrote: > El jue, 24-07-2003 a las 15:12, Christian Reis escribi�: > > On Wed, Jul 23, 2003 at 01:39:28PM +0200, Carlos Garcia Campos wrote: > > > > > > > > > > I'm trying to load some png images, and I used to use the GdkImLib > > > > > > image = gtk.Image() > > > image.set_from_file(filename) > > > > > > > What about > > > > import gtk > > pixbuf = gtk.gdk.pixbuf_new_from_file(imagefilename) > > > > listed in FAQ 8.2? I thought gtk.Image only loaded XPMs, but now I see > > that's not the case: > > http://developer.gnome.org/doc/API/2.0/gtk/GtkImage.html > > > > Somebody want to clarify and update the FAQ? > > In gtk 2.x GtkImage can load various image types (xpm, png, jpg, tif, > gif, ...) > > You can see an example here: > > http://www.moeraki.com/pygtktutorial/pygtk2tutorial/sec-Images.html
Fair enough. What is gdk.Pixbuf for, in that case? (I suspect somebody's going to tell me it allows you to do in-core manipulation images; am I right?) Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
