【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.1.6.32 okutil_convert_RGB_to_ocolor
Contents
Description
convert RGB to OCOLOR
Syntax
OCOLOR okutil_convert_RGB_to_ocolor( COLORREF cr )
Parameters
- cr
- [input] RGB value, can be constructed using macro RGB
Return
OCOLOR return include Origin internal color index if given input matches one of them.
Examples
void okutil_convert_RGB_to_ocolor_ex1(int clrR, int clrG, int clrB) { DWORD dwRGB = RGB(clrR, clrG, clrB); int nColor = okutil_convert_RGB_to_ocolor(dwRGB); out_int("nColor=", nColor); }
Remark
See Also
Header to Included
origin.h