getcolor

The function is used to gets the current foreground color.

COLORREF getcolor();

Parameters

None

Return Value

Returns the current fill color.

Remarks

The function is declared in graphics.h and is used to be compatible with function of the same name in Turbo C.

Because the Turbo C drawing function does not distinguish between line color and text color, it is not exactly equivalent to the getlinecolor() or gettextcolor() function in easyx.h.

It is recommended to use getlinecolor or gettextcolor instead of the function as required.

Examples

None