Win32API プログラム
Posted: 2012年12月30日(日) 19:43
RGB関数で指定する3つの整数をCOLORREF型の値から得る方法はあるでしょうか?
#include <stdio.h>
#include <windows.h>
int main(void) {
COLORREF color;
color=RGB(64,128,255);
printf("R=%d,G=%d,B=%d\n",
GetRValue(color),GetGValue(color),GetBValue(color));
return 0;
}