[Mono-list] [SOLVED]Re: Clipping with Cairo

Francisco M. Marzoa fmmarzoa at gmx.net
Wed Nov 17 12:43:29 EST 2010


Hello,

Works like a charm. Thank you. :-)

Regards,

El 17/11/10 16:56, Jonathan Pobst escribió:
> Draw your clipping rectangle path, call Clip, then set up and stroke
> your line:
>
> cc = Gdk.CairoHelper.Create (drawingarea1.GdkWindow);
> cc.Rectangle (50,50,80,80);
> cc.Clip ();
>
> cc.Color = new Cairo.Color (0,0,0);
> cc.MoveTo (10,10);
> cc.LineTo (100, 100);
> cc.Stroke();
>
> Jonathan



More information about the Mono-list mailing list