I have an application in which all drawing is being done by System.Drawing
calls using a bitmap_cache, from which the Graphics is obtained by
Graphics.FromImage (bitmap_cache).  ExposeEvents on a Gtk.DrawingArea then
obtain a Graphics via Gtk.DotNet.Graphics.FromDrawable to copy the
bitmap_cache to the DrawingArea window using g.DrawImage.  I'm trying to
draw rubber-band lines on this (which System.Drawing does not support) so
I'm looking at obtaining a Gdk.Drawable from the DrawingArea, which I can
draw on with Gdk.DrawLine calls with Gdk.Function set to XOR.  I can easily
draw XOR lines on the DrawingArea, but what I need to access is the
bitmap_cache, so that ExposeEvents copy up the XOR lines as well.  

a) Is this the right way to be going?
b) Are there any examples to study
c) is there another (better) way?

-- Hywel Thomas


-- 
View this message in context: 
http://www.nabble.com/Combining-Gtk.DotNet-drawing-and-Gdk-XOR-lines-tp22058470p22058470.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to