コード例 #1
0
 private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
 {
     if (pointer == false)
     {
         canDraw = true;
         begin   = new clsDiem(e.X, e.Y);
         rect.X  = begin.x;
         rect.Y  = begin.y;
     }
 }
コード例 #2
0
        private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
        {
            if (canDraw == true)
            {
                end = new clsDiem(e.X, e.Y);
                g.Clear(pictureBox1.BackColor);
                if (pointer)
                {
                    return;
                }
                else if (isLine == true)
                {
                    g.DrawLine(pen, begin.x, begin.y, e.X, e.Y);
                }

                Update();
            }
        }
コード例 #3
0
 public triangular(clsDiem A, clsDiem B, clsDiem C)
 {
     begin = A;
     end   = B;
     fe    = C;
 }
コード例 #4
0
 public triangular()
 {
     begin = new clsDiem(0, 0);
     end   = new clsDiem(0, 0);
     fe    = new clsDiem(0, 0);
 }
コード例 #5
0
 public Line(clsDiem A, clsDiem B)
 {
     begin = A;
     end   = B;
 }
コード例 #6
0
 public Line()
 {
     begin = new clsDiem(0, 0);
     end   = new clsDiem(0, 0);
 }