ColorSpaceHelperToUInt16(Single) Method
Converts a floating-point value ranging from 0 to 1 to a
UInt16 without changing the color space.
Out-of-range values are allowed in which case the result will be clipped
to
UInt16.MinValue or
UInt16.MaxValue.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.1
[CLSCompliantAttribute(false)]
public static ushort ToUInt16(
float value
)
<CLSCompliantAttribute(false)>
Public Shared Function ToUInt16 (
value As Single
) As UShort
public:
[CLSCompliantAttribute(false)]
static unsigned short ToUInt16(
float value
)
[<CLSCompliantAttribute(false)>]
static member ToUInt16 :
value : float32 -> uint16
- value Single
- The value to convert.
UInt16The result of the conversion.