FMX.Utils.Luminance
Delphi
function Luminance(const AColor: TAlphaColor): Single;
C++
extern DELPHI_PACKAGE float __fastcall Luminance(const System::Uitypes::TAlphaColor AColor);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | FMX.Utils.pas FMX.Utils.hpp |
FMX.Utils | FMX.Utils |
Description
Calculates the relative luminance of the given TAlphaColor.
Luminance returns an integer value in range [0-1], corresponding to the luminance of AColor.