VintaSoft Imaging .NET SDK 15.2: Documentation for .NET developer
Vintasoft.Imaging.ImageColors Namespace / ColorBase Class / GetLuminance Methods / GetLuminance(VintasoftColor) Method
Syntax Requirements SeeAlso
In This Topic
GetLuminance(VintasoftColor) Method (ColorBase)
In This Topic
Returns the RGB color luminance in the range [0; 255].
Syntax
'Declaration

Public Overloads Shared Function GetLuminance( _
ByVal color
The RGB color.
As Vintasoft.Primitives.VintasoftColor _
) As Byte
public static byte GetLuminance(
Vintasoft.Primitives.VintasoftColor color
)

Parameters

color
The RGB color.

Return Value

Color luminance in the range [0; 255].
Requirements

Target Platforms: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also