getcolor

This function is used to gets the current foreground color.

COLORREF getcolor();

Parameters

None

Return Value

Returns the current fill color.

Remarks

This function is obsolete and is declared only in graphics.h.

It is recommended that use getlinecolor or gettextcolor instead of this function.

Because the foreground color set by this function includes both line and text color, it is not exactly equivalent to the getlinecolor or gettextcolor functions in easyx.h, so choose an alternative function based on the actual situation.

Examples

None