C# Class ImageProcessor.Common.Extensions.FloatExtensions

Encapsulates a series of time saving extension methods to the T:System.Float class.
Datei anzeigen Open project: JimBobSquarePants/ImageProcessor

Public Methods

Method Description
ToByte ( this value ) : byte

Converts an T:System.Float value into a valid T:System.Byte. If the value given is less than 0 or greater than 255, the value will be constrained into those restricted ranges.

Method Details

ToByte() public static method

Converts an T:System.Float value into a valid T:System.Byte. If the value given is less than 0 or greater than 255, the value will be constrained into those restricted ranges.
public static ToByte ( this value ) : byte
value this /// The to convert. ///
return byte