예제 #1
0
        private void button6_Click(object sender, EventArgs e)
        {
            double time = Algo.GetLine(int.Parse(textBoxX1.Text), int.Parse(textBoxY1.Text),
                                       int.Parse(textBoxX2.Text), int.Parse(textBoxY2.Text), points);

            label6.Text = $"Время: {time} ms";
            pictureBox1.Refresh();
        }
예제 #2
0
        private void button5_Click_1(object sender, EventArgs e)
        {
            double time = Algo.BresenhamCircle(int.Parse(textBoxX1.Text), int.Parse(textBoxY1.Text),
                                               int.Parse(textBoxR.Text), points);

            label6.Text = $"Время: {time} tics";
            pictureBox1.Refresh();
        }