Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ColorDifference Class

 

Represents the per-channel difference between two colors, used to represent tolerance.

Namespace:   Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

System.Object
  Microsoft.VisualStudio.TestTools.UITesting.ColorDifference

[CLSCompliantAttribute(true)]
public class ColorDifference

NameDescription
System_CAPS_pubmethodColorDifference()

Initializes a new instance of the ColorDifference class, using values of zero, which indicates zero tolerance.

Alpha is set to 255, which indicates maximum tolerance for transparency.

System_CAPS_pubmethodColorDifference(Byte)

Initializes a new instance of the ColorDifference class, setting red, green, and blue to specified value.

Alpha is set to 255, which indicates maximum tolerance for transparency.

System_CAPS_pubmethodColorDifference(Byte, Byte, Byte)

Initializes a new instance of the ColorDifference class, using the specified red, green, and blue values.

Alpha is set to 255, which indicates maximum tolerance for transparency.

System_CAPS_pubmethodColorDifference(Byte, Byte, Byte, Byte)

Initializes a new instance of the ColorDifference class, using the specified alpha, red, green, and blue values.

NameDescription
System_CAPS_pubpropertyAlpha

Alpha (transparency) color channel difference.

System_CAPS_pubpropertyBlue

Blue color channel difference.

System_CAPS_pubpropertyGreen

Green color channel difference.

System_CAPS_pubpropertyRed

Red color channel difference.

NameDescription
System_CAPS_pubmethodEquals(Object)

Compares the current object with another ColorDifference object.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Overrides object.GetHashCode.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns the string representation of the ColorDifference.(Overrides Object.ToString().)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(ColorDifference, ColorDifference)

Operator overload for == operator.

System_CAPS_puboperatorSystem_CAPS_staticInequality(ColorDifference, ColorDifference)

Operator overload for the != operator.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: