ocolor2rgb

Description

This function is used to convert an internal color code (ocolor) to RGB value.

Syntax

int ocolor2rgb(int oColor)

Parameters

oColor

the OCOLOR value to be converted.

Return

Return the corresponding RGB value, which is constructed by RGB triplet as: R + G*256 + B*65536.

Example

ocolor2rgb(29151788) =; //return 12374572

See Also

color