ColorSpaceHelperToByte(UInt16) Method
Converts a 16-bit color channel value to an 8-bit value representing the same intensity without changing the color space.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.1
[CLSCompliantAttribute(false)]
public static byte ToByte(
ushort value
)
<CLSCompliantAttribute(false)>
Public Shared Function ToByte (
value As UShort
) As Byte
public:
[CLSCompliantAttribute(false)]
static unsigned char ToByte(
unsigned short value
)
[<CLSCompliantAttribute(false)>]
static member ToByte :
value : uint16 -> byte
- value UInt16
- The value to convert.
ByteThe result of the conversion.