title: Gtk#: How to convert a Gtk.Image in a Gdk one?
body: <p>I would like to write a simple 2D game in Mono/Gtk#with MonoDevelop 2.4. My first interest was to display a PNG image for the player character in the Window canvas (later I will respond to keyboard events in order to move it). However, I have found out a disturbing problem here: while I get a Gtk.Image object for the player character, the DrawImage method of the Gdk Window needs a Gdk image. How could I convert the first one to the latter?</p>
  
  <pre><code>public static void ShowImage(Gdk.Window w, Gtk.Image image)
  {
      w.DrawImage( Style.ForegroundGC( StateType.Normal ),
                       image,             // ERROR                                    
                       0, 0, image.Pixbuf.Width, image.Pixbuf.Height,
                       image.Pixbuf.Width, image.Pixbuf.Height
      );
  }
  </code></pre>
  
  <p>This is might appear simplistic, but honestly I haven't found the answer yet.</p>