VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.ImageColors Namespace / ColorBase Class / GetLuminance(Int32,Int32,Int32) Method
Syntax Requirements SeeAlso
In This Topic
    GetLuminance(Int32,Int32,Int32) Method (ColorBase)
    In This Topic
    Returns the color luminance in the range [0; 255].
    Syntax
    'Declaration
    
    Public Shared Function GetLuminance( _
    ByVal r
    Red component of color.
    As System.Int32, _
    ByVal g
    Green component of color.
    As System.Int32, _
    ByVal b
    Blue component of color.
    As System.Int32 _
    ) As Byte
    public static byte GetLuminance(
    System.Int32 r,
    System.Int32 g,
    System.Int32 b
    )
    public: static byte GetLuminance(
    System.Int32 r,
    System.Int32 g,
    System.Int32 b
    )
    public:
    static byte GetLuminance(
    System.Int32 r,
    System.Int32 g,
    System.Int32 b
    )

    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].
    Requirements

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

    See Also