Beispiel #1
0
        void CreateNewPath()
        {
            CGPath path = new CGPath();

            path.AddRect(new CGRect(0, 0, 1, 1));
            DrawingLayer.SetBasicPath(path);
        }
Beispiel #2
0
        void CreateNewPath()
        {
            CGPath path = new CGPath();

            path.MoveToPoint(x1, y1);
            path.AddLineToPoint(x2, y2);
            DrawingLayer.SetBasicPath(path);
        }
Beispiel #3
0
        public void SetPoints(CGPoint[] points)
        {
            CGPath path = new CGPath();

            path.AddLines(points);

            if (this is PolygonUIView)
            {
                path.CloseSubpath();
            }
            DrawingLayer.SetBasicPath(path);
        }
Beispiel #4
0
 public void SetPath(CoreGraphics.CGPathPlus path)
 {
     DrawingLayer.SetBasicPath(path);
     DrawingLayer.SetIsNonzeroFill(path == null ? false : path.IsNonzeroFill);
 }