[Gtk-sharp-list] Working with Images, Gdk, and the Gtk.Image control...
eskil.bylund at gmail.com
Wed Oct 10 14:35:00 EDT 2007
2007/10/9, Alexander Trauzzi <atrauzzi at gmail.com>:
> I'm slightly confused. What's the difference between the Gtk and Gdk
Taken directly from http://gtk.org/tutorial/c24.html:
"... GTK is built on top of GDK (GIMP Drawing Kit) which is basically
a wrapper around the low-level functions for accessing the underlying
windowing functions (Xlib in the case of the X windows system), and
gdk-pixbuf, a library for client-side image manipulation."
> As well, I want to create an image in memory that then gets displayed in an
> image control, specifically "Gtk.Image"...
To mix two images you can use the Composite method on a Gdk.Pixbuf.
Attach is a sample showing this and how drawing can be made on a
Drawable. It's pretty low level, so using System.Drawing with a
DrawingArea might be easier (and there are many tutorials available on
The docs at http://gtk.org/api/ has all the details on Gdk and Gtk.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1726 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071010/7c846e2b/attachment.bin
More information about the Gtk-sharp-list