C# 클래스 ImageProcessor.Common.Extensions.FloatExtensions

Encapsulates a series of time saving extension methods to the T:System.Float class.
파일 보기 프로젝트 열기: JimBobSquarePants/ImageProcessor

공개 메소드들

메소드 설명
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.

메소드 상세

ToByte() 공개 정적인 메소드

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. ///
리턴 byte