VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.ImageColors Namespace / Gray16Color Class / GetLum16FromRgb16(UInt16,UInt16,UInt16) Method
Syntax Requirements SeeAlso
In This Topic
    GetLum16FromRgb16(UInt16,UInt16,UInt16) Method (Gray16Color)
    In This Topic
    Returns the 16-bit color luminance.
    Syntax
    'Declaration
    
    <CLSCompliantAttribute(False)>
    Public Shared Function GetLum16FromRgb16( _
    ByVal r
    Red component of 16-bit color.
    As UShort, _
    ByVal g
    Green component of 16-bit color.
    As UShort, _
    ByVal b
    Blue component of 16-bit color.
    As UShort _
    ) As UShort
    [CLSCompliant(False)]
    public static ushort GetLum16FromRgb16(
    ushort r,
    ushort g,
    ushort b
    )
    [CLSCompliant(False)]
    public: static ushort GetLum16FromRgb16(
    ushort r,
    ushort g,
    ushort b
    )
    [CLSCompliant(False)]
    public:
    static ushort GetLum16FromRgb16(
    ushort r,
    ushort g,
    ushort b
    )

    Parameters

    r
    Red component of 16-bit color.
    g
    Green component of 16-bit color.
    b
    Blue component of 16-bit color.

    Return Value

    16-bit color luminance.
    Requirements

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

    See Also