VintaSoft Imaging .NET SDK 15.2: 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; }

Remarks

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

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