正确定义画笔的语句是:
A: Pen p = new Pen();
B: Pen p = new Pen(3);
C: Pen p = new Pen(Color.Red, 3);
D: 都不对
A: Pen p = new Pen();
B: Pen p = new Pen(3);
C: Pen p = new Pen(Color.Red, 3);
D: 都不对
举一反三
- 下列定义画笔对象p的语句中,正确的是___________。 A: Dim p As new Pen = Color.Red B: Dim p As Pen = New Pen(Color.Red, 3) C: Dim p As new Pen = Pen(Color.Red,1) D: Dim p As Pen(Color.Black) E: Dim p = Pen(Color.Black,2)
- 定义一个画笔对象,下列哪项错误() A: Pen myPen=new Pen(Color.Red) B: Pen myPen=new Pen(new SolidBrush(Color.Red)) C: Pen myPen=new Pen(Color.Red,5) D: Pen myPen=new Pen(new Bitmap(“e:\\1.jpg”))
- My pen is not black. The red pen is ____. A: my B: I C: mine
- .NET框架提供的Pen类可用于构造各种作图用的画笔,Color类为调色盘,Brush类是刷子。画笔的两种最常用的构造方式为:Pen 画笔名 = new Pen(颜色, 笔头宽度);Pen 画笔名 = new Pen(刷子, 笔头宽度);这两种方式中,笔头宽度值越大,在纸上绘制的线越宽。这个值也可以省略,默认宽度是________。 A: 0 B: 1 C: 8 D: 16
- I don’t take Jake’s pen because I don’t like ______. A: that pen of his B: that his pen C: his that pen D: that pen of him