VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.ColorManagement Namespace / ColorTransforms Class / RgbToGrayLightness Property
Syntax Remarks Requirements SeeAlso
In This Topic
    RgbToGrayLightness Property (ColorTransforms)
    In This Topic
    Gets a standard color transform from RGB to Gray using Lightness method.
    Syntax
    'Declaration
    
    Public Shared ReadOnly Property RgbToGrayLightness As ColorTransform
    
    
    public static ColorTransform RgbToGrayLightness { get; }
    
    
    public: __property static ColorTransform* get_RgbToGrayLightness();
    
    
    
    public:
    static property ColorTransform^ RgbToGrayLightness { ColorTransform^ get(); }
    Remarks

    This color transform uses the following formula: Gray = 0.5 * (max(R,G,B) + min(R,G,B))

    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