大千世界,五彩缤纷,颜色何止千万。除了Color类自带的已知颜色,还可以构造其他任何特殊的颜色。最常用的构造方式如下:Color c = Color.FromArgb(int alpha, int red, int green, int blue);其中,四个参数alpha、red、green和blue分别表示颜色透明度、红色分量、绿色分量和蓝色分量。它们的取值范围是_________。
A: 0 ~ 127
B: 0 ~ 255
C: 0 ~ 65535
D: 0 ~ 2147483647
A: 0 ~ 127
B: 0 ~ 255
C: 0 ~ 65535
D: 0 ~ 2147483647
B
举一反三
- 以下哪个不是Color类的FromArgb方法的参数? A: 颜色透明度alpha B: 红色分量red C: 绿色分量green D: 黄色分量yellow
- 以下选项中不能正确把cor定义成结构体变量的是______。 A: struct{ int red; int green; int blue;} cor; B: struct color cor{ int red; int green; int blue;}; C: struct color{ int red; int green; int blue;} cor; D: typedef struct{ int red;int green;int blue;}COLOR;COLOR cor;
- 以下选项中不能正确把cl定义成结构体变量的是______。 1.typedefstruct {intred; int green; int blue; } COLOR; COLOR cl; 2.structcolor cl { int red; int green; int blue; }; 3.structcolor { int red; int green; int blue; }cl; 4.struct {int red; int green; intblue; }c1;
- 以下选项中不能正确把 cl 定义成结构体变量的是 ______ 。 1 . typedefstruct {intred; int green; int blue; } COLOR; COLOR cl; 2 . structcolor cl { int red; int green; int blue; }; 3 . structcolor { int red; int green; int blue; }cl; 4 . struct {int red; int green; intblue; }c1;
- 分析如下代码,“文本”的颜色应该是:();p{color:blue;}p.special{color:red;}.special{color:green;};……;文本;…… A: blue B: green C: red D: 不确定
内容
- 0
下面span标签中HelloWorld字体的颜色是:()span{color:green;}.red{color:red;}#blue{color:blue;}HelloWorld A: green B: red C: blue D: black
- 1
颜色函数rgb(red, green, blue)的参数green表示( ) A: 红色 B: 绿色 C: 蓝色 D: 透明度
- 2
阅读下面的程序, 请写出程序的输出结果 。 #include<iostream> using namespace std; int main () { enum Color {Red,Green,Blue}; Color color; color=Red; cout<<color<<","; color=Green; cout<<color<<","; color=Blue; cout<<color<<","; cout<<Red+Green+Blue<<endl; return 0; }
- 3
对HTML结构<p id=”red”class=”blue”>段落文本</p>,设置CSS样式为p{color:green;},#red{color:red;},.blue{color:blue;},“段落文本”的显示颜色为()。 A: 绿色(green) B: 黑色(black) C: 蓝色(blue) D: 红色(red)
- 4
函数rgba(red, green, blue, alpha)的参数alpha表示( ) A: 红色 B: 绿色 C: 蓝色 D: 透明度