ColorSpaceHelperSrgbToLinear(UInt16) Method
Converts a
UInt16 value representing an sRGB color component to a floating-point value between 0 and 1
representing an RGB color component in the linear color space.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.1
[CLSCompliantAttribute(false)]
public static float SrgbToLinear(
ushort value
)
<CLSCompliantAttribute(false)>
Public Shared Function SrgbToLinear (
value As UShort
) As Single
public:
[CLSCompliantAttribute(false)]
static float SrgbToLinear(
unsigned short value
)
[<CLSCompliantAttribute(false)>]
static member SrgbToLinear :
value : uint16 -> float32
- value UInt16
- The UInt16 value to convert.
SingleA floating-point value between 0 and 1 representing an RGB color component in the linear color space.