RGB 색상과 관련해 서 자주 잊어 버리는 경우가 있어서 메모함. 색상
GetRValue
The GetRValue macro retrieves an intensity value for the red component of a 32-bit red, green, blue (RGB) value.
BYTE GetRValue(
DWORD rgb // 32-bit RGB value
);
PALETTEINDEX
The PALETTEINDEX macro accepts an index to a logical-color palette entry and returns a palette-entry specifier consisting of a 32-bit COLORREF value that specifies the color associated with the given index. An application using a logical color palette can pass this specifier, instead of an explicit red, green, blue (RGB) value, to GDI functions that expect a color. This allows the function to use the color in the specified palette entry.
COLORREF PALETTEINDEX(
WORD wPaletteIndex // index to palette entry
);
Color Macros
The following macros are used with color.
GetBValue |
|
GetGValue |
|
GetRValue |
|
PALETTEINDEX |
|
PALETTERGB |
|
RGB |
'개발언어 > c++' 카테고리의 다른 글
Rich Edit 사용법 메모 (0) | 2016.06.13 |
---|---|
ATL 프로젝트 디버깅 팁 (0) | 2016.06.13 |
List Column 고정하기 (0) | 2016.06.13 |
Cedit버디컨트롤 (0) | 2016.06.13 |
Object instantiation / Template / Reference (0) | 2016.06.13 |