okutil_convert_ocolor_to_RGB

 

Description

convert OCOLOR to RGB

Syntax

int okutil_convert_ocolor_to_RGB(OCOLOR oColor)

Parameters

oColor
[input] Origin OColor

Return

RGB value

Examples

void okutil_convert_ocolor_to_RGB_ex1()
{
        DWORD dwRGB = okutil_convert_ocolor_to_RGB(SYSCOLOR_BLUE);
        int clrR = GetRValue(dwRGB), clrG = GetGValue(dwRGB), clrB = GetBValue(dwRGB);
        printf("blue R=%d G=%d B=%d\n", clrR, clrG, clrB);
        
        dwRGB = okutil_convert_ocolor_to_RGB(SYSCOLOR_RED);
        clrR = GetRValue(dwRGB), clrG = GetGValue(dwRGB), clrB = GetBValue(dwRGB);
        printf("red R=%d G=%d B=%d\n", clrR, clrG, clrB);
}

Remark

See Also

okutil_convert_RGB_to_ocolor

header to Included

origin.h

Reference