示例#1
0
 public override Primitive Clone()
 {
     PointShape point = new PointShape(this.rect);
     point.FillColor = this.FillColor;
     point.LineWidth = this.LineWidth;
     return point;
 }
示例#2
0
        public PointShape(PointShape point) : base(point)
        {

        }
示例#3
0
        // ADD PRIMITIVES

        public void AddPoint(PointF location, Color color)
        {
            PointShape point = new PointShape(new Rectangle((int)location.X, (int)location.Y, 5, 5));
            point.FillColor = MainForm.GetRandomColor();

            if (Program.form.TabControl.SelectedTab.Equals(Program.form.TabPage3))
                PrimitiveList3.Add(point);
            else
                PrimitiveList.Add(point);
            selection = point;
        }