举报

GetBValue和GetRValue宏的参数不应该是bgr吗?(文档里写的是rgb)

0

GetBValue和GetRValue宏的参数不应该是bgr吗?

#include<graphics.h>
#include<stdio.h>

int main()
{

	COLORREF color = 0x224488;	
	printf("color: %x(bgr)\n", color);	//224488
	printf("GetBValue(color): %x\n", GetBValue(color));	//22
	printf("GetBValue(BGR(color)): %x\n", GetBValue(BGR(color)));	//88
	printf("GetRValue(color): %x\n", GetRValue(color));	//88
	printf("GetRValue(BGR(color)): %x\n", GetRValue(BGR(color)));	//22
}
ava
苍贰哈

2025-11-15

技术讨论社区