Пример #1
0
        private void DrawScrew(MapGraphics graph, RectangleF rect)
        {
            Pen pen = new Pen(Color.FromArgb(128, 255, 255, 255), 1f);

            graph.DrawEllipse(pen, rect.X, rect.Y, rect.Width, rect.Height);
            graph.DrawLine(pen, (float)(rect.X + 2.0), (float)(rect.Y + rect.Height - 2.0), (float)(rect.Right - 2.0), (float)(rect.Y + 2.0));
            pen = new Pen(Color.FromArgb(128, Color.Black), 1f);
            graph.DrawEllipse(pen, (float)(rect.X + 1.0), (float)(rect.Y + 1.0), rect.Width, rect.Height);
            graph.DrawLine(pen, (float)(rect.X + 3.0), (float)(rect.Y + rect.Height - 1.0), (float)(rect.Right - 1.0), (float)(rect.Y + 3.0));
        }