Ejemplo n.º 1
0
        private void Draw2_btn_Click(object sender, EventArgs e)
        {
            Point startPoint = new Point((int)xPoint2Start.Value, (int)yPoint2Start.Value);
            Point endPoint   = new Point((int)xPoint2End.Value, (int)yPoint2End.Value);

            DrawingAlgorithms.BresenhamAlgorithm(pictureBoxBersenham, startPoint, endPoint);
        }
Ejemplo n.º 2
0
        private void Draw1_btn_Click(object sender, EventArgs e)
        {
            Point startPoint = new Point((int)xPoint1Start.Value, (int)yPoint1Start.Value);
            Point endPoint   = new Point((int)xPoint1End.Value, (int)yPoint1End.Value);

            DrawingAlgorithms.IncrementalAlgorithm(pictureBoxIncremental, startPoint, endPoint);
        }