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-tp3175423p3175621.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