티스토리 뷰
RGB
The RGB macro selects a red, green, blue (RGB) color based on the arguments supplied and the color capabilities of the output device.
COLORREF RGB(
BYTE bRed, // red component of color
BYTE bGreen, // green component of color
BYTE bBlue // blue component of color
);
Parameters
- cRed
- Specifies the intensity of the red color.
- cGreen
- Specifies the intensity of the green color.
- cBlue
- Specifies the intensity of the blue color.
Return Values
The return value is the resultant RGB color.
Remarks
The intensity for each argument is in the range 0 through 255. If all three intensities are zero, the result is black. If all three intensities are 255, the result is white.
For information about using color values in a color palette, see the descriptions of the PALETTEINDEX and PALETTERGB macros.
The RGB macro is defined as follows:
#define RGB(r, g ,b) ((DWORD) (((BYTE) (r) | \
((WORD) (g) << 8)) | \
(((DWORD) (BYTE) (b)) << 16)))
QuickInfo
Windows NT: Requires version 3.1 or later.
Windows:
Requires Windows 95 or later.
Windows CE: Requires version 1.0
or later.
Header: Declared in wingdi.h.
See Also
728x90
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 스프링 시큐리티(spring security)
- 인텔리제이(intellij)
- 메이븐(maven)
- REST API
- java-개발 환경 설정하기
- java.sql
- System.Diagnostics
- 람다식(lambda expression)
- 진수 변환
- jsp 오픈 소스
- 스프링 시큐리티(spring security)-http basic 인증
- java 키워드 정리
- 스프링 프레임워크(spring framewordk)
- .submit()
- 제품 등록
- await
- In App Purchase
- docker
- React
- system.io
- MainActor
- jstl(java standard tag library)-core
- 문자 자르기
- error-java
- 특정 문자를 기준으로 자르기
- jstl(java standard tag library)
- nl2br
- java web-mvc
- 표현 언어(expression language)
- 스프링 프레임워크(spring framework)
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
글 보관함