static PointF P2P(P2 p) { return(new PointF((float)p.X, (float)p.Y)); }
private Rectangle PumpByBorder(Rectangle rectangle) { P2 del = new P2(this.Attr.Border, this.Attr.Border); return(new Rectangle(rectangle.LeftBottom - del, rectangle.RightTop + del)); }
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)); }
public static VA.Drawing.Point ToVAPoint(MG.Point p) { return(new VA.Drawing.Point(p.X, p.Y)); }