Property | Type | Description | |
---|---|---|---|
AllowThresholds | bool | ||
Black | |||
ColorExtractionFactor | double | ||
Purple | |||
White |
Method | Description | |
---|---|---|
AbsDifference ( |
Calculates the absolute difference between to pixels.
|
|
Clone ( ) : object |
Creates a new object that is a copy of the current instance.
|
|
Equals ( object o ) : bool |
Determines whether the specified System.Object is equal to this instance.
|
|
Equals ( |
Determines whether the specified sPixel is equal to this instance.
|
|
FromFloat ( float red, float green, float blue, float alpha = 1f ) : |
||
FromGrey ( byte grey, byte alpha = 255 ) : |
Factory to create a sPixel instance from grey value.
|
|
FromRGBA ( byte red, byte green, byte blue, byte alpha = 255 ) : |
Factory to create a sPixel instance from red, green and blue value.
|
|
FromRGBA ( int red, int green, int blue, int alpha = 255 ) : |
Factory to create a sPixel instance from red, green and blue value.
|
|
GetHashCode ( ) : int |
Returns a hash code for this instance.
|
|
GetObjectData ( |
Serializes this instance.
|
|
Interpolate ( |
Interpolates two sPixel instances.
|
|
Interpolate ( |
Weighted interpolation of two sPixel instances.
|
|
Interpolate ( |
Interpolates three sPixel instances.
|
|
Interpolate ( |
Weighted interpolation of three sPixel instances.
|
|
Interpolate ( |
Interpolates four sPixel instances.
|
|
Interpolate ( |
Weighted interpolation of four sPixel instances.
|
|
IsLike ( |
Determines whether the specified sPixel instance is similar to this instance.
|
|
IsNotLike ( |
Determines whether this instance is not like the specified sPixel instance.
|
|
ToString ( ) : string |
Returns a System.String that represents this instance.
|
|
operator ( ) : bool |
Test for inequality of at least one color component.
|
|
operator ( ) : |
Inverts the given color.
|
|
sPixel ( Color color ) : System.Diagnostics.Contracts |
Initializes a new instance of the sPixel struct by using an instance of a the Color class.
|
|
sPixel ( |
Initializes a new instance of the sPixel struct by deserializing it.
|
|
sPixel ( byte grey, byte alpha = 255 ) : System.Diagnostics.Contracts |
Initializes a new instance of the sPixel struct by using a grey value.
|
|
sPixel ( byte red, byte green, byte blue, byte alpha = 255 ) : System.Diagnostics.Contracts |
Initializes a new instance of the sPixel struct by using red, green and blue component.
|
|
sPixel ( double red, double green, double blue, double alpha = 1 ) : System.Diagnostics.Contracts |
Initializes a new instance of the sPixel struct by using red, green and blue component.
|
|
sPixel ( |
Initializes a new instance of the sPixel struct by using an existing one.
|
Method | Description | |
---|---|---|
_Byte2Double ( byte value ) : double |
Converts a byte color component to double floating point.
|
|
_Byte2Single ( byte value ) : float |
Converts a byte color component to single floating point.
|
|
_Float2Byte ( float value ) : byte |
Clips a float value within 0-255 range and returns it.
|
|
_GetAlpha ( uint rgbBytes ) : byte |
Gets the value for alpha, hopefully the compiler inlines that.
|
|
_GetBlue ( uint rgbBytes ) : byte |
Gets the value for blue, hopefully the compiler inlines that.
|
|
_GetGreen ( uint rgbBytes ) : byte |
Gets the value for green, hopefully the compiler inlines that.
|
|
_GetRed ( uint rgbBytes ) : byte |
Gets the value for red, hopefully the compiler inlines that.
|
|
sPixel ( dword rgbData ) : System.Diagnostics.Contracts |
Prevents a default instance of the sPixel struct from being created.
|
public AbsDifference ( |
||
pixel | The pixel to differ to. | |
return | uint |
public Equals ( object o ) : bool | ||
o | object | The |
return | bool |
public Equals ( |
||
pixel | The |
|
return | bool |
public static FromFloat ( float red, float green, float blue, float alpha = 1f ) : |
||
red | float | |
green | float | |
blue | float | |
alpha | float | |
return |
public static FromGrey ( byte grey, byte alpha = 255 ) : |
||
grey | byte | The grey value. |
alpha | byte | The alpha value. |
return |
public static FromRGBA ( byte red, byte green, byte blue, byte alpha = 255 ) : |
||
red | byte | The red-value. |
green | byte | The green-value. |
blue | byte | The blue-value. |
alpha | byte | The alpha-value. |
return |
public static FromRGBA ( int red, int green, int blue, int alpha = 255 ) : |
||
red | int | The red-value. |
green | int | The green-value. |
blue | int | The blue-value. |
alpha | int | The alpha-value. |
return |
public GetObjectData ( |
||
serializationInfo | The serialization info. | |
_ | The streaming context. | |
return | void |
public static Interpolate ( |
||
pixel1 | The first pixel instance. | |
pixel2 | The second pixel instance. | |
return |
public static Interpolate ( |
||
pixel1 | The first instance. | |
pixel2 | The second instance. | |
quantifier1 | byte | The quantifier for the first instance. |
quantifier2 | byte | The quantifier for the second instance. |
return |
public static Interpolate ( |
||
pixel1 | The first pixel instance. | |
pixel2 | The second pixel instance. | |
pixel3 | The third pixel instance. | |
return |
public static Interpolate ( |
||
pixel1 | The first instance. | |
pixel2 | The second instance. | |
pixel3 | The third instance. | |
quantifier1 | byte | The quantifier for the first instance. |
quantifier2 | byte | The quantifier for the second instance. |
quantifier3 | byte | The quantifier for the third instance. |
return |
public static Interpolate ( |
||
pixel1 | The first pixel instance. | |
pixel2 | The second pixel instance. | |
pixel3 | The third pixel instance. | |
pixel4 | The fourth pixel instance. | |
return |
public static Interpolate ( |
||
pixel1 | The first instance. | |
pixel2 | The second instance. | |
pixel3 | The third instance. | |
pixel4 | The fourth instance. | |
quantifier1 | byte | The quantifier for the first instance. |
quantifier2 | byte | The quantifier for the second instance. |
quantifier3 | byte | The quantifier for the third instance. |
quantifier4 | byte | The quantifier for the fourth instance. |
return |
public IsLike ( |
||
pixel | The instance to compare to. | |
return | bool |
public IsNotLike ( |
||
pixel | The instance to compare to. | |
return | bool |
public sPixel ( Color color ) : System.Diagnostics.Contracts | ||
color | Color | The color. |
return | System.Diagnostics.Contracts |
public sPixel ( |
||
serializationInfo | The serialization info. | |
_ | The streaming context. | |
return | System.Diagnostics.Contracts |
public sPixel ( byte grey, byte alpha = 255 ) : System.Diagnostics.Contracts | ||
grey | byte | The grey value. |
alpha | byte | The alpha value. |
return | System.Diagnostics.Contracts |
public sPixel ( byte red, byte green, byte blue, byte alpha = 255 ) : System.Diagnostics.Contracts | ||
red | byte | The red-value. |
green | byte | The green-value. |
blue | byte | The blue-value. |
alpha | byte | The alpha-value. |
return | System.Diagnostics.Contracts |
public sPixel ( double red, double green, double blue, double alpha = 1 ) : System.Diagnostics.Contracts | ||
red | double | The red-value. |
green | double | The green-value. |
blue | double | The blue-value. |
alpha | double | The alpha. |
return | System.Diagnostics.Contracts |
public sPixel ( |
||
pixel | The pixel instance to copy from. | |
return | System.Diagnostics.Contracts |
public static double ColorExtractionFactor | ||
return | double |