public override void LineTo(Point point, bool isStroked, bool isSmoothJoin)
        {
#if __IOS__
            bezierPath.AddLineTo(point);
#elif __MACOS__
            bezierPath.LineTo(point);
#elif __ANDROID__
            var physicalPoint = LogicalToPhysicalNoRounding(point);
            bezierPath.LineTo((float)physicalPoint.X, (float)physicalPoint.Y);
#endif

            _points.Add(point);
        }
        public override void LineTo(Point point, bool isStroked, bool isSmoothJoin)
        {
#if __IOS__
            bezierPath.AddLineTo(point);
#elif __MACOS__
            bezierPath.LineTo(point);
#elif __ANDROID__
            bezierPath.LineTo((float)point.X, (float)point.Y);
#elif __SKIA__
            bezierPath.Geometry.LineTo((float)point.X, (float)point.Y);
#endif

            _points.Add(point);
        }
Example #3
0
        public override void LineTo(Point point, bool isStroked, bool isSmoothJoin)
        {
#if XAMARIN_IOS_UNIFIED || XAMARIN_IOS
            bezierPath.AddLineTo(point);
#elif XAMARIN_ANDROID
            var physicalPoint = LogicalToPhysicalNoRounding(point);
            bezierPath.LineTo((float)physicalPoint.X, (float)physicalPoint.Y);
#endif

            _points.Add(point);
        }