示例#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));
 }