C# Class WinRTXamlToolkit.Imaging.PixelMath

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

Méthodes publiques

Méthode 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 méthode

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.
Résultat byte

Clamp() public static méthode

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.
Résultat double

Max() public static méthode

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.
Résultat byte

Max() public static méthode

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.
Résultat byte

Max() public static méthode

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.
Résultat double

Max() public static méthode

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.
Résultat double

Min() public static méthode

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.
Résultat byte

Min() public static méthode

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.
Résultat byte

Min() public static méthode

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.
Résultat double

Min() public static méthode

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.
Résultat double