Hmm... Random idea: isn't there a mode in WinForms that lets a parent draw
its children? I forgot the details.
Maybe something like that: http://support.microsoft.com/kb/943454
Except that example uses P/Invokes, unfortunately.

I also found this:
http://stackoverflow.com/questions/592538/how-to-create-a-transparent-control-which-works-when-on-top-of-other-controls

Last random idea: use parent.DrawToBitmap(), then draw your child control on
top of it?


cs_eps wrote:
> 
> Thanks for your answer!
> Right, I could clear/redraw the control only partially. This would reduce,
> but not completely avoid flicker and would raise the complexity of the
> code.
> 
> I'm still looking for copying, instead of drawing. I just saw that cairo
> uses the CAIRO_OPERATOR_OVER compositing operator by default, but it could
> be set to CAIRO_OPERATOR_SOURCE before drawing my buffer and then set it
> back.
> 
> Is that a way? How can it be realized without modifying the
> System.Drawing.Graphics class (It still should build with .NET).
> 
> 
> Stifu wrote:
>> 
>> Hi,
>> 
>> How about defining clip regions for the parts that should be transparent,
>> before calling Clear?
>> However, I remember getting into issues doing something similar with
>> Mono. It worked fine with .NET, though.
>> See: https://bugzilla.novell.com/show_bug.cgi?id=492299
>> 
>> 
> 
> 

-- 
View this message in context: 
http://mono.1490590.n4.nabble.com/Copy-rather-than-drawing-an-image-to-a-graphics-object-tp3175423p3175904.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to