-
VC++转换COLORREF值为RGB分量
VC++转换COLORREF值为RGB分量,举个例子,在本例中,是将COLORREF值:0x000080FF转换成:R分量:0xFF、G分量:0x80、B分量:0x00,注意,并不是分离。请看定义:
//R分量
BYTE RED = GetRValue(cr);
//G分量
BYTE GREEN = GetGValue(cr);
//B分量
BYTE BLUE = GetBValue(cr);
CString strText = _T("");
strText.Format(_T("COLORREF值:0x%08X"), cr);
pDC->TextOut(100, 50, strText);
strText.Format(_T("R分量:0x%02X"), RED);
pDC->TextOut(100, 100, strText);
strText.Format(_T("G分量:0x%02X"), GREEN);
pDC->TextOut(100, 150, strText);
strText.Format(_T("B分量:0x%02X"), BLUE);
pDC->TextOut(100, 200, strText);
- 2022-06-13 02:13:45下载
- 积分:1
-
散斑资料
说明: 有关散斑资料及其matlab编程(Speckle data and MATLAB programming)
- 2020-05-01 17:02:29下载
- 积分:1
-
"C Programming Language Guide electronic templates" source code
《C语言程序设计教程电子教案》源代码-"C Programming Language Guide electronic templates" source code
- 2023-08-05 18:55:03下载
- 积分:1
-
TlakovaCara
说明: TlakovaCara.cpp : Implementation of CTlakovaCaraApp and DLL registration.
- 2020-11-20 19:28:31下载
- 积分:1
-
netdisk
baidu netdisk download tool
- 2020-06-19 06:00:01下载
- 积分:1
-
libandroid_runtime
说明: Android RUNTIME library
- 2020-06-22 10:20:02下载
- 积分:1
-
c# 编写的俄罗斯方块游戏, 有音效和音乐(不过在有的机器上播放 mid 会出错...), 同时实现了 GDI+ 和 DDraw 两套呈现引擎. debug/r...
c# 编写的俄罗斯方块游戏, 有音效和音乐(不过在有的机器上播放 mid 会出错...), 同时实现了 GDI+ 和 DDraw 两套呈现引擎. debug/release 目录中包含了运行时所需的资源.-c# prepared by the Russian box game. a sound and music (though in some machines will be broadcast mid mistake ...), while achieving the GDI and DDraw has two engines. debug/release contains a directory Runtime the necessary resources.
- 2022-02-20 09:58:54下载
- 积分:1
-
Documents
可以利用hfss输出的s参数反算介电常数(use the s paramaters to get Dielectric constant)
- 2019-04-15 21:23:39下载
- 积分:1
-
单目标定
说明: 双目摄像头实现对目标定,获取参数后才能进行双目标定(Binocular cameras can be used for target determination, and only after parameters are obtained can they be used for bi-target determination.)
- 2019-05-15 16:50:06下载
- 积分:1
-
这个程序是一个简单的计算器,计算[乘,除,加,减,…
this program is simple calculator that calculate [multiply, divide, plus, minus, facrorial, power, sin(x), cos(x), tan(x), sqrt(x), Ln(x), Exp(x)] of two number.
- 2022-01-26 06:47:26下载
- 积分:1