Пример #1
0
        public void DrawCoordinate(Point coordinate, bool withLabels = true, string prefix = "")
        {
            if (withLabels)
            {
                var text = string.Format("({0};{1})", coordinate.X, coordinate.Y);
                if (prefix != null)
                {
                    text = prefix + text;
                }
                DrawText(text, coordinate);
            }

            DrawUntransformed(() =>
            {
                var tx = transf.Tx(coordinate);

                graphics.FillEllipse(Brushes.Red, tx.X - 2, tx.Y - 2, 4, 4);
            });
        }
        public void DrawCoordinate(Point coordinate)
        {
            DrawText(string.Format("({0};{1})", coordinate.X, coordinate.Y), coordinate);

            DrawUntransformed(() =>
            {
                var tx = transf.Tx(coordinate);

                graphics.FillEllipse(Brushes.Red, tx.X - 3, tx.Y - 3, 6, 6);
            });
        }