/// <summary> /// Draws the Image contained in the ColumnHeader /// </summary> /// <param name="g">The Graphics used to paint the Image</param> /// <param name="image">The Image to be drawn</param> /// <param name="imageRect">A rectangle that specifies the Size and /// Location of the Image</param> /// <param name="enabled">Specifies whether the Image should be drawn /// in an enabled state</param> protected void DrawColumnHeaderImage(Gdk.Drawable dr, Gdk.Pixbuf image, Gdk.Rectangle imageRect, bool enabled) { System.Drawing.Graphics g = Gtk.DotNet.Graphics.FromDrawable(dr); System.Drawing.Image img = GraphUtil.BitmapFromPixbuf(image); if (enabled) { g.DrawImage(image, imageRect); } else { using (Image im = new System.Drawing.BitmapBitmap(image, imageRect.Width, imageRect.Height)) { //TODO: //ControlPaint.DrawImageDisabled(g, im, imageRect.X, imageRect.Y, this.BackBrush.Color); } } }