void CreateNewPath() { CGPath path = new CGPath(); path.AddRect(new CGRect(0, 0, 1, 1)); DrawingLayer.SetBasicPath(path); }
void CreateNewPath() { CGPath path = new CGPath(); path.MoveToPoint(x1, y1); path.AddLineToPoint(x2, y2); DrawingLayer.SetBasicPath(path); }
public void SetPoints(CGPoint[] points) { CGPath path = new CGPath(); path.AddLines(points); if (this is PolygonUIView) { path.CloseSubpath(); } DrawingLayer.SetBasicPath(path); }
public void SetPath(CoreGraphics.CGPathPlus path) { DrawingLayer.SetBasicPath(path); DrawingLayer.SetIsNonzeroFill(path == null ? false : path.IsNonzeroFill); }