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.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
C#
public static byte ToByte(
	float value
)

Parameters

value  Single
The value to convert.

Return Value

Byte
The result of the conversion.

See Also