[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'Graph' (#rtl)

GetMaxColor

return maximum number of colors

Declaration

Source position: graphh.inc line 745

function GetMaxColor: Word;

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

SetColor

  

Set foreground drawing color

GetPaletteSize

  

Return maximal number of entries in current palette

The latest version of this document can be found at lazarus-ccr.sourceforge.net.