Convert an HTML hex color string into an Origin OColor
OCOLOR okutil_HTML_to_ocolor(LPCSTR lpcsz)
Return color value in Origin's OCOLOR format, return 0 if input is not in valid format.
EX1
void okutil_HTML_to_ocolor_Ex1() { OCOLOR MyColor1 = okutil_HTML_to_ocolor("#00FF00"); OCOLOR MyColor2 = okutil_HTML_to_ocolor("#0f0"); if( MyColor2 == MyColor1 ) printf("Both colors are the same.\n"); }
okutil_ocolor_to_HTML
origin.h