[Gtk-sharp-list] Working with Images, Gdk, and the Gtk.Image control...

Eskil Bylund 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
> namespace?
>
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
that topic).

The docs at http://gtk.org/api/ has all the details on Gdk and Gtk.

Eskil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PixbufSample.cs
Type: text/x-csharp
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 mailing list