GetLuminance(Int32,Int32,Int32) Method (ColorBase)
Returns the color luminance in the range [0; 255].
'Declaration
Public Shared Function GetLuminance( _
ByVal As System.Int32, _
ByVal As System.Int32, _
ByVal As System.Int32 _
) As Byte
public static byte GetLuminance(
System.Int32 ,
System.Int32 ,
System.Int32
)
public: static byte GetLuminance(
System.Int32 ,
System.Int32 ,
System.Int32
)
public:
static byte GetLuminance(
System.Int32 ,
System.Int32 ,
System.Int32
)
Parameters
- r
- Red component of color.
- g
- Green component of color.
- b
- Blue component of color.
Return Value
Color luminance in the range [0; 255].
Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5