public override void FillPreserve(object backend) { CGContext ctx = ((CGContextBackend)backend).Context; using (CGPath oldPath = ctx.CopyPath()) { Fill(backend); ctx.AddPath(oldPath); } }
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); } }