C# Class WinRTXamlToolkit.Imaging.PixelMath

Contains basic pixel processing helper methods for double- and byte-type pixel color components.
Datei anzeigen Open project: xyzzer/WinRTXamlToolkit

Public Methods

Method Description
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.

Method Details

Clamp() public static method

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.
return byte

Clamp() public static method

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.
return double

Max() public static method

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.
return byte

Max() public static method

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.
return byte

Max() public static method

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.
return double

Max() public static method

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.
return double

Min() public static method

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.
return byte

Min() public static method

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.
return byte

Min() public static method

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.
return double

Min() public static method

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.
return double