/// <summary> /// Determines the shape type and Coords values for this GraphObj /// </summary> override public void GetCoords(PaneBase pane, Graphics g, float scaleFactor, out string shape, out string coords) { // transform the x,y location from the user-defined // coordinate frame to the screen pixel location PointF pix = _location.Transform(pane); PointF[] pts = _fontSpec.GetBox(g, _text, pix.X, pix.Y, _location.AlignH, _location.AlignV, scaleFactor, new SizeF()); shape = "poly"; coords = String.Format("{0:f0},{1:f0},{2:f0},{3:f0},{4:f0},{5:f0},{6:f0},{7:f0},", pts[0].X, pts[0].Y, pts[1].X, pts[1].Y, pts[2].X, pts[2].Y, pts[3].X, pts[3].Y); }