コード例 #1
0
        private void pictureBox2_MouseUp(object sender, MouseEventArgs e)
        {
            if (startDDAPointX != 0 && startDDAPointY != 0)
            {
                PomogiTask3.LineDDA(startDDAPointX, startDDAPointY, e.X, e.Y, pictureBox2);
            }

            startDDAPointX = e.X;
            startDDAPointY = e.Y;
        }
コード例 #2
0
        private void pictureBox1_MouseUp(object sender, MouseEventArgs e)
        {
            if (startBresenhamPointX != 0 && startBresenhamPointY != 0)
            {
                PomogiTask3.BresenhamLine(startBresenhamPointX, startBresenhamPointY, e.X, e.Y, pictureBox1);
            }

            startBresenhamPointX = e.X;
            startBresenhamPointY = e.Y;
        }