VB高手看过来

来源:百度知道 编辑:UC知道 时间:2024/06/19 03:45:11
QBColor函数,返回一个Long, 表示所对应的颜色值的RGB码
请问RGB码是什么??
语法QBColor(color),必要的color参数是一个0到15之间的整型
请问0-15 是不是代表颜色啊,各代表什么颜色呢?
谢谢帮助

R---红
G---蓝
B---绿
格式为RGB(X,X,X)
X的值从0到255,值越小,对应的颜色值越浅

QBColor(color)

必要的 color 参数是一个界于 0 到 15 的整型。

color 参数有以下这些设置:

0 黑色 8 灰色
1 兰色 9 亮兰色
2 绿色 10 亮绿色
3 青色 11 亮青色
4 红色 12 亮红色
5 洋红色 13 亮洋红色
6 黄色 14 亮黄色
7 白色 15 亮白色

The RGB macro selects a red, green, blue (RGB) color based on the arguments supplied and the color capabilities of the output device.

COLORREF RGB(

BYTE bRed, // red component of color
BYTE bGreen, // green component of color
BYTE bBlue // blue component of color
);

Parameters

cRed

Specifies the intensity of the red color.

cGreen

Specifies the intensity of the green color.

cBlue

Specifies the intensity of the blue color.

Return Values

The return value is the resultant RGB color.

Remarks

Th