我想移动Picturebox里面画了椭圆

时间:2017-03-02 12:09:17

标签: c# visual-studio-2010

我已经使用

画了椭圆
g.DrawEllipse(p, 0, 0, 100, 100);
p = new Pen(Color.Red, 1f);

这是我移动picturbox的代码

int x, y;
 private void timer1_Tick(object sender, EventArgs e)
     {
        y+=5;
        x += 2;
        pictureBox3.Location = new Point(x, y);

        Invalidate();
      }

图片框正确移动... 但我想... 如何在该椭圆内移动Picturebox? 椭圆应该固定一个..

0 个答案:

没有答案