/// <summary> /// Convert from WPF point to core point. /// </summary> public static Point[] Convert(RPoint[] points) { Point[] myPoints = new Point[points.Length]; for (int i = 0; i < points.Length; i++) myPoints[i] = Convert(points[i]); return myPoints; }
public ArcSegmentGeometry(Point startPoint, Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection,bool isClosed,bool isStroked) { _startPoint = startPoint; _point = point; _size = size; _rotationAngle = rotationAngle; _isLargeArc = isLargeArc; _sweepDirection = sweepDirection; _isClosed = isClosed; _isStroked = isStroked; IPlatformRenderInterface factory = PerspexLocator.Current.GetService<IPlatformRenderInterface>(); IStreamGeometryImpl impl = factory.CreateStreamGeometry(); using (IStreamGeometryContextImpl context = impl.Open()) { context.BeginFigure(startPoint, isStroked); context.ArcTo(point, size, rotationAngle,isLargeArc, sweepDirection); context.EndFigure(isClosed); } PlatformImpl = impl; }
/// <summary> /// Convert from WPF point to core point. /// </summary> public static RPoint Convert(Point p) { return new RPoint(p.X, p.Y); }