MonoMac.CoreGraphics.CGPath.AddLines C# (CSharp) Method

AddLines() public method

public AddLines ( CGAffineTransform m, PointF points ) : void
m CGAffineTransform
points System.Drawing.PointF
return void
		public void AddLines (CGAffineTransform m, PointF [] points)
		{
			CGPathAddLines (handle, ref m, points, points.Length);
		}
		public void AddRects (CGAffineTransform m, PointF [] points, int count)

Same methods

CGPath::AddLines ( PointF points ) : void

Usage Example

Ejemplo n.º 1
0
        public static CGPath ToCGPath(BasicPath path)
        {
            // TODO: We assume for now that only path lines can exist. 
            var linePoints = new List<PointF>();
            foreach (var item in path.Items)
            {
                if (item is BasicPathLine)
                {
                    var line = item as BasicPathLine;
                    linePoints.Add(ToPoint(line.PointA));
                    linePoints.Add(ToPoint(line.PointB));
                }
            }

            var cgPath = new CGPath();
            cgPath.AddLines(linePoints.ToArray());
            return cgPath;
        }
All Usage Examples Of MonoMac.CoreGraphics.CGPath::AddLines