C# Класс WinRTXamlToolkit.Imaging.PixelMath

Contains basic pixel processing helper methods for double- and byte-type pixel color components.
Показать файл Открыть проект

Открытые методы

Метод Описание
Clamp ( this value, byte min, byte max ) : byte

Clamps the specified value to the given inclusive min..max range.

Clamp ( this value, double min, double max ) : double

Clamps the specified value to the given inclusive min..max range.

Max ( byte v1, byte v2, byte v3 ) : byte

Returns the maximum of 3 numbers.

Max ( byte v1, byte v2, byte v3, byte v4 ) : byte

Returns the maximum of 4 numbers.

Max ( double v1, double v2, double v3 ) : double

Returns the maximum of 3 numbers.

Max ( double v1, double v2, double v3, double v4 ) : double

Returns the maximum of 4 numbers.

Min ( byte v1, byte v2, byte v3 ) : byte

Returns the minimum of 3 numbers.

Min ( byte v1, byte v2, byte v3, byte v4 ) : byte

Returns the minimum of 4 numbers.

Min ( double v1, double v2, double v3 ) : double

Returns the minimum of 3 numbers.

Min ( double v1, double v2, double v3, double v4 ) : double

Returns the minimum of 4 numbers.

Описание методов

Clamp() публичный статический Метод

Clamps the specified value to the given inclusive min..max range.
public static Clamp ( this value, byte min, byte max ) : byte
value this The value.
min byte The min.
max byte The max.
Результат byte

Clamp() публичный статический Метод

Clamps the specified value to the given inclusive min..max range.
public static Clamp ( this value, double min, double max ) : double
value this The value.
min double The min.
max double The max.
Результат double

Max() публичный статический Метод

Returns the maximum of 3 numbers.
public static Max ( byte v1, byte v2, byte v3 ) : byte
v1 byte The v1.
v2 byte The v2.
v3 byte The v3.
Результат byte

Max() публичный статический Метод

Returns the maximum of 4 numbers.
public static Max ( byte v1, byte v2, byte v3, byte v4 ) : byte
v1 byte The v1.
v2 byte The v2.
v3 byte The v3.
v4 byte The v4.
Результат byte

Max() публичный статический Метод

Returns the maximum of 3 numbers.
public static Max ( double v1, double v2, double v3 ) : double
v1 double The v1.
v2 double The v2.
v3 double The v3.
Результат double

Max() публичный статический Метод

Returns the maximum of 4 numbers.
public static Max ( double v1, double v2, double v3, double v4 ) : double
v1 double The v1.
v2 double The v2.
v3 double The v3.
v4 double The v4.
Результат double

Min() публичный статический Метод

Returns the minimum of 3 numbers.
public static Min ( byte v1, byte v2, byte v3 ) : byte
v1 byte The v1.
v2 byte The v2.
v3 byte The v3.
Результат byte

Min() публичный статический Метод

Returns the minimum of 4 numbers.
public static Min ( byte v1, byte v2, byte v3, byte v4 ) : byte
v1 byte The v1.
v2 byte The v2.
v3 byte The v3.
v4 byte The v4.
Результат byte

Min() публичный статический Метод

Returns the minimum of 3 numbers.
public static Min ( double v1, double v2, double v3 ) : double
v1 double The v1.
v2 double The v2.
v3 double The v3.
Результат double

Min() публичный статический Метод

Returns the minimum of 4 numbers.
public static Min ( double v1, double v2, double v3, double v4 ) : double
v1 double The v1.
v2 double The v2.
v3 double The v3.
v4 double The v4.
Результат double