ColorSpaceHelperToByte(Single) Method
Converts a floating-point value ranging from 0 to 1 to a
byte without changing the color space.
Out-of-range values are allowed in which case the result will be clipped
to
Byte.MinValue or
Byte.MaxValue.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
public static byte ToByte(
float value
)
Public Shared Function ToByte (
value As Single
) As Byte
public:
static unsigned char ToByte(
float value
)
static member ToByte :
value : float32 -> byte
- value Single
- The value to convert.
ByteThe result of the conversion.