Skip to content

GetMaxColor

return maximum number of colors.

Declaration

Source position: graphh.inc line 781

function GetMaxColor : ColorType;

Description

GetMaxColor returns the maximum color-number which can be set with SetColor. Contrary to Turbo Pascal, this color isn't always guaranteed to be white (for instance in 256+ color modes).

Errors

None.

See also

Name Description
SetColor Set foreground drawing color.
GetPaletteSize Return maximal number of entries in current palette.