Пример #1
0
 static PointF P2P(P2 p)
 {
     return(new PointF((float)p.X, (float)p.Y));
 }
Пример #2
0
        private Rectangle PumpByBorder(Rectangle rectangle)
        {
            P2 del = new P2(this.Attr.Border, this.Attr.Border);

            return(new Rectangle(rectangle.LeftBottom - del, rectangle.RightTop + del));
        }
Пример #3
0
 static void DrawCircleAroungPolylineCorner(Graphics g, P2 p, Pen pen, double radius)
 {
     g.DrawEllipse(pen, (float)(p.X - radius), (float)(p.Y - radius),
                   (float)(2 * radius), (float)(2 * radius));
 }
Пример #4
0
 public static VA.Drawing.Point ToVAPoint(MG.Point p)
 {
     return(new VA.Drawing.Point(p.X, p.Y));
 }