コード例 #1
0
ファイル: PointShape.cs プロジェクト: kvhadzhiev/Vector.NET
 public override Primitive Clone()
 {
     PointShape point = new PointShape(this.rect);
     point.FillColor = this.FillColor;
     point.LineWidth = this.LineWidth;
     return point;
 }
コード例 #2
0
ファイル: PointShape.cs プロジェクト: kvhadzhiev/Vector.NET
        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;
        }