[Gtk-sharp-list] Select an area of Gtk.Image

Andy Selvig ajselvig at gmail.com
Thu Sep 3 19:18:54 EDT 2009

It seems like the easiest way is to use a Cairo to draw to a
Gtk.DrawingArea. You can draw the image, then draw whatever overlays you'd
like on top of it. You can create a Cairo context on a Gtk.DrawingArea using

On Thu, Sep 3, 2009 at 6:09 PM, skatm <jovisa737590 at gmail.com> wrote:

> Hello,
> What I'm trying to do is display and image and let the user select a
> rectangle area of the image and display the rectangle selection as they
> select it.
> I thought I could do it by using Gtk.Image to display the image and use the
> ButtonPress, MotionNotify & ButtonRelease signals to capture the mouse
> input. My problem is I can't find anyway to overlay or draw the selected
> rectangle onto the Gtk.Image.
> Is there anyway I can do this using Gtk#?
> Thanks ,
> Sam
> --
> View this message in context:
> http://www.nabble.com/Select-an-area-of-Gtk.Image-tp25285682p25285682.html
> Sent from the Mono - Gtk# mailing list archive at Nabble.com.
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20090903/5e99eac8/attachment.html 

More information about the Gtk-sharp-list mailing list