-
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
-
冬谷二十四-TS-插件
final cut pro plugins
- 2020-06-24 12:00:02下载
- 积分:1
-
小游戏叫做连连看,打开后里面会有说明怎样玩。
小游戏叫做连连看,打开后里面会有说明怎样玩。-Lianliankan called game, which will be opened to how to play.
- 2022-08-15 00:11:44下载
- 积分:1
-
VB 摄像头视频远程传输实例
说明: 主要功能是可以控制和监视客户端,如捕捉客户端屏幕、发送消息到客户端、锁定客户端、解锁客户端、控制注销客户端(The main functions are to control and monitor the client, such as capturing the client screen, sending messages to the client, locking the client, unlocking the client, and controlling the logout client.)
- 2020-06-15 22:55:01下载
- 积分:1
-
瑞利信道下,OFDM系统中使用BPSK调制的误码率(验证可用,与理论值比较)...
瑞利信道下,OFDM系统中使用BPSK调制的误码率(验证可用,与理论值比较)-BER for BPSK in OFDM with Rayleigh multipath channel
- 2022-07-07 19:02:43下载
- 积分:1
-
LotterySelection
MFC实现一个好玩的 号码快速变化 再停止的抽奖程序(MFC implements a fun number to stop the fast-changing lottery process again)
- 2011-11-29 12:39:59下载
- 积分:1
-
CWM Khusus Redmi 2 Based on Kitkat
CWM Khusus Redmi 2 Based on Kitkat
- 2020-06-20 16:20:02下载
- 积分:1
-
AntiARPSniffer for detecting arp
AntiARPSniffer 用于检测arp
-AntiARPSniffer for detecting arp
- 2022-12-11 01:30:03下载
- 积分:1
-
线圆组合阵
说明: 运用线圆组合阵列定位噪声源,里面有几种简单的算法(There are several simple algorithms for locating noise sources by using a combined array of lines and circles.)
- 2019-04-09 11:12:28下载
- 积分:1
-
程序运行时间的类(c++),经过编译了,可以直接使用
程序运行时间的类(c++),经过编译了,可以直接使用-the category (c), after the compiler can be used directly!
- 2022-02-20 12:35:22下载
- 积分:1