public MyShape(MyShape _myShape) { penAttr = new PenAttr(_myShape.penAttr); points = new List <Point>(_myShape.points); angleRotate = _myShape.angleRotate; tyleScale = _myShape.tyleScale; }
public MyShape(List <Point> _points) { penAttr = new PenAttr(COLOR_PEN_DEFAULT, DashStyle.Solid, 1); points = new List <Point>(_points); angleRotate = 0; tyleScale = new SizeF(1, 1); }
public MyShape(PenAttr _penAttr, List <Point> _points) { penAttr = _penAttr; points = new List <Point>(_points); angleRotate = 0; tyleScale = new SizeF(1, 1); }
private PenAttr getPenAttr() { PenAttr penAttr = null; switch (comboBoxDashStyle.SelectedItem.ToString()) { case "Dash": penAttr = new PenAttr(colorDialog1.Color, DashStyle.Dash, Convert.ToInt32(Math.Round(numericUpDownPenWidth.Value, 0))); break; case "DashDot": penAttr = new PenAttr(colorDialog1.Color, DashStyle.DashDot, Convert.ToInt32(Math.Round(numericUpDownPenWidth.Value, 0))); break; case "DashDotDot": penAttr = new PenAttr(colorDialog1.Color, DashStyle.DashDotDot, Convert.ToInt32(Math.Round(numericUpDownPenWidth.Value, 0))); break; case "Dot": penAttr = new PenAttr(colorDialog1.Color, DashStyle.Dot, Convert.ToInt32(Math.Round(numericUpDownPenWidth.Value, 0))); break; case "Solid": penAttr = new PenAttr(colorDialog1.Color, DashStyle.Solid, Convert.ToInt32(Math.Round(numericUpDownPenWidth.Value, 0))); break; default: break; } return(penAttr); }
public MyArc(PenAttr _penAttr, List <Point> _points) : base(_penAttr, _points) { calcBound(); }
public override void updatePenAttr(PenAttr _penAttr) { penAttr = _penAttr; }
public MyEllipse(PenAttr _penAttr, List <Point> _points) : base(_penAttr, _points) { calcMostLeftWidthHeight(); brushAttr = new BrushAttr(COLOR_BRUSH_DEFAULT, "SolidBrush"); }
public MyParallelogram(PenAttr _penAttr, List <Point> _points) : base(_penAttr, _points) { brushAttr = new BrushAttr(COLOR_BRUSH_DEFAULT, "SolidBrush"); }
public MyLine(PenAttr _penAttr, List <Point> _points) : base(_penAttr, _points) { }
public PenAttr(PenAttr penAttr) { color = penAttr.color; dashStyle = penAttr.dashStyle; width = penAttr.width; }
public MyBezier(PenAttr _penAttr, List <Point> _points) : base(_penAttr, _points) { }
public virtual void updatePenAttr(PenAttr _penAttr) { }
public MyParabol(PenAttr _penAttr, List <Point> _points) : base(_penAttr, _points) { }