Exemple #1
0
        public override void FillPreserve(object backend)
        {
            CGContext ctx = ((CGContextBackend)backend).Context;

            using (CGPath oldPath = ctx.CopyPath()) {
                Fill(backend);
                ctx.AddPath(oldPath);
            }
        }
Exemple #2
0
        public override void StrokePreserve(object backend)
        {
            CGContext ctx = ((CGContextBackend)backend).Context;

            SetupContextForDrawing(ctx);
            using (CGPath oldPath = ctx.CopyPath()) {
                ctx.DrawPath(CGPathDrawingMode.Stroke);
                ctx.AddPath(oldPath);
            }
        }