예제 #1
0
        private static void DrawPoint(IViewPort viewPort, int x, int y)
        {
            var pointRect = new CGRect(viewPort.DisplayPosition(new CGPoint(x, y)), new CGSize(CircleSize, CircleSize));

            var path = UIBezierPath.FromOval(pointRect);

            path.Fill();
        }
예제 #2
0
 protected virtual CGPoint GetDrawPosition(double sourceX, double sourceY, IViewPort viewPort, IXAxis xAxis, IYAxis yAxis)
 => viewPort.DisplayPosition(new CGPoint(xAxis.GetContentValue(sourceX), yAxis.GetContentValue(sourceY)));