Exemplo n.º 1
0
        private void BresenhamBtn_Click(object sender, EventArgs e)
        {
            g.Clear(Color.White);
            al = new Center();

            GetPointValue();

            DrawLine(Brushes.Red);
        }
Exemplo n.º 2
0
        private void DDABtn_Click(object sender, EventArgs e)
        {
            g.Clear(Color.White);
            al = new DDA();

            GetPointValue();

            DrawLine(Brushes.Black);
        }
Exemplo n.º 3
0
 public TriangleManager(ICustomBitmap bitmap) : base(bitmap)
 {
     _triangles         = new List <TriangleModel>();
     _bresenhamLine     = new BresenhamLine();
     _lastPreviewPoints = new HashSet <IBPoint>();
 }
 public PenLineManager(ICustomBitmap bitmap) : base(bitmap)
 {
     _penLines      = new List <PenLine>();
     _bresenhamLine = new BresenhamLine();
 }
 public StraightLineManager(ICustomBitmap bitmap) : base(bitmap)
 {
     _penLines          = new List <PenLine>();
     _bresenhamLine     = new BresenhamLine();
     _lastPreviewPoints = new HashSet <IBPoint>();
 }