• 2022-06-19 问题

    中国大学MOOC: 可以用控件的CreateGraphics ()方法得到Graphics对象

    中国大学MOOC: 可以用控件的CreateGraphics ()方法得到Graphics对象

  • 2022-06-19 问题

    可以用控件的CreateGraphics ()方法得到Graphics对象 A: 正确 B: 错误

    可以用控件的CreateGraphics ()方法得到Graphics对象 A: 正确 B: 错误

  • 2022-10-29 问题

    窗体或控件本身带有CreateGraphics方法,利用它可以创建Paint对象。

    窗体或控件本身带有CreateGraphics方法,利用它可以创建Paint对象。

  • 2022-06-06 问题

    绘制一个实心圆,下列代码正确的是 A: Graphics g=CreateGraphics();Pen myPen=new Pen(Color.Blue);g.DrawEllipse(myPen, new Rectangle(50, 50, 100, 100)); B: Graphics g=CreateGraphics();SolidBrush myBrush = new SolidBrush(Color.Blue);g.DrawEllipse(myBrush, new Rectangle(50, 50, 100, 100)); C: Graphics g=CreateGraphics();SolidBrush myBrush = new SolidBrush(Color.Blue); g.FillEllipse(myBrush, new Rectangle(50, 50, 100, 100)); D: Graphics g=CreateGraphics();Pen myPen=new Pen(Color.Blue);g.FillEllipse(myPen, new Rectangle(50, 50, 100, 100));

    绘制一个实心圆,下列代码正确的是 A: Graphics g=CreateGraphics();Pen myPen=new Pen(Color.Blue);g.DrawEllipse(myPen, new Rectangle(50, 50, 100, 100)); B: Graphics g=CreateGraphics();SolidBrush myBrush = new SolidBrush(Color.Blue);g.DrawEllipse(myBrush, new Rectangle(50, 50, 100, 100)); C: Graphics g=CreateGraphics();SolidBrush myBrush = new SolidBrush(Color.Blue); g.FillEllipse(myBrush, new Rectangle(50, 50, 100, 100)); D: Graphics g=CreateGraphics();Pen myPen=new Pen(Color.Blue);g.FillEllipse(myPen, new Rectangle(50, 50, 100, 100));

  • 2022-10-29 问题

    窗体或控件本身带有CreateGraphics方法,利用它可以创建Paint对象。 A: 正确 B: 错误

    窗体或控件本身带有CreateGraphics方法,利用它可以创建Paint对象。 A: 正确 B: 错误

  • 2022-06-19 问题

    创建Graphics对象有哪些方法可以使用? A: 直接使用newGraphics()建立对象。 B: 在窗体或控件的Paint事件中获取Graphics对象 C: 调用窗体或控件的CreateGraphics()方法 D: 调用Graphics的FromImage()方法

    创建Graphics对象有哪些方法可以使用? A: 直接使用newGraphics()建立对象。 B: 在窗体或控件的Paint事件中获取Graphics对象 C: 调用窗体或控件的CreateGraphics()方法 D: 调用Graphics的FromImage()方法

  • 2022-06-19 问题

    以下哪些方式能获得Graphics对象obj? A: Graphics obj = 窗体或控件名.CreateGraphics(); B: private void 窗体或控件名_Paint(object sender, PaintEventArgs e){ Graphics obj = e. Graphics;} C: Bitmap map = new Bitmap(宽,高);Graphics obj = Graphics.FromImage(map);obj.DrawImage(map, x坐标, y坐标); D: Graphics obj = new Graphics(宽,高);

    以下哪些方式能获得Graphics对象obj? A: Graphics obj = 窗体或控件名.CreateGraphics(); B: private void 窗体或控件名_Paint(object sender, PaintEventArgs e){ Graphics obj = e. Graphics;} C: Bitmap map = new Bitmap(宽,高);Graphics obj = Graphics.FromImage(map);obj.DrawImage(map, x坐标, y坐标); D: Graphics obj = new Graphics(宽,高);

  • 2022-06-19 问题

    创建Graphics对象的途径有: A: 利用控件或窗体的Paint事件中的PainEventArgs参数:Graphics xxx = e.Graphics; //xxx为自定义的实例对象名 B: 调用某控件或窗体的CreateGraphics方法:Graphics xxx = pictureBox1.CreateGraphics(); //以 pictureBox为例,xxx为自定义的实例对象名 C: 调用Graphics类的FromImage静态方法Graphics xxx = Graphics.FromImage(Image.FromFile(“yyy.jpg”)); // yyy.jpg为图像文件名 D: 使用new 方法创建Graphics xxx = new Graphics(); //xxx为自定义的实例对象名

    创建Graphics对象的途径有: A: 利用控件或窗体的Paint事件中的PainEventArgs参数:Graphics xxx = e.Graphics; //xxx为自定义的实例对象名 B: 调用某控件或窗体的CreateGraphics方法:Graphics xxx = pictureBox1.CreateGraphics(); //以 pictureBox为例,xxx为自定义的实例对象名 C: 调用Graphics类的FromImage静态方法Graphics xxx = Graphics.FromImage(Image.FromFile(“yyy.jpg”)); // yyy.jpg为图像文件名 D: 使用new 方法创建Graphics xxx = new Graphics(); //xxx为自定义的实例对象名

  • 1