[Gtk-sharp-list] Gtk.Image, Gdk.Image, Gdk.Pixbuf, Gdk.Pixmap - can't figure it out

Brad Taylor brad at getcoded.net
Tue Mar 3 17:14:42 EST 2009


> I'm startig to get confused, because there are so many
> similar-sounding image related classes in gtk. 
> What I'm looking for is an offscreen image class, which can be
> manipulated (drawing geometrical figures for example) and later be
> displayed by a Gtk.Image. 
> Gtk.Pixbuf sounds right to me, but I can't find out how display it by
> my Gtk.Image object.

You're right, Gdk.Pixbuf sounds like the right class for what you need.
It's an offscreen in-memory representation of the bits of an image.

To view your Pixbuf with a Gtk.Image, just set its Pixbuf property.
Check out: http://go-mono.org/docs/monodoc.ashx?link=T%3aGtk.Image%2f*



More information about the Gtk-sharp-list mailing list