Unit 'GraphUtil' Package
[Overview][Constants][Types][Procedures and functions][Index] [#lcl]

ColorToGray

Converts a Lazarus TColor value to its grayscale equivalent.

Declaration

Source position: graphutil.pp line 30

function ColorToGray(

  const AColor: TGraphicsColor

):Byte;

Arguments

AColor

  

TColor value converted in the method.

Function result

Byte contain the grayscale value for the specified color.