/// <summary> /// Default constructor. /// </summary> public Text() { Geometric.Reset(); Geometric.AddLine(0, 0, 1, 1); //Geometric.AddString(_displayedText, _font.FontFamily, (int)_font.Style, _font.Size, Geometric.GetBounds(), _stringFormat); // Geometric.FillMode = System.Drawing.Drawing2D.FillMode.Winding; this.Transformer.RotateOccurred += new RotateHandler(Transformer_RotateOccurred); ((PolygonAppearance)this.Appearance).BackgroundColor1 = Color.Black; ((PolygonAppearance)this.Appearance).BackgroundColor2 = Color.Black; }
/// <summary> /// Constructor. /// </summary> /// <param name="start">Start point.</param> /// <param name="end">End point.</param> public Line(PointF start, PointF end) { if (start.X == end.X) { end = new PointF(end.X + 1, end.Y); } if (start.Y == end.Y) { end = new PointF(end.X, end.Y + 1); } Geometric.AddLine(start, end); Appearance = new LineAppearance(); }
/// <summary> /// Constructor. /// </summary> /// <param name="bitmap">Reference bitmap.</param> public Image(Bitmap bitmap) { Geometric.AddLine(new Point(0, 0), new Point(1, 1)); _bitmap = bitmap.Clone() as Bitmap; }
/// <summary> /// Default constructor. /// </summary> public Image() { Geometric.AddLine(new Point(0, 0), new Point(1, 1)); }
/// <summary> /// Default constructor. /// </summary> public Line() { Geometric.AddLine(new PointF(0, 0), new PointF(1, 1)); Appearance = new LineAppearance(); }