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.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.1
C#
[CLSCompliantAttribute(false)]
public static float SrgbToLinear(
	ushort value
)

Parameters

value  UInt16
The UInt16 value to convert.

Return Value

Single
A floating-point value between 0 and 1 representing an RGB color component in the linear color space.

See Also