ColorDifference Class
Represents the per-channel difference between two colors, used to represent tolerance.
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
| Name | Description | |
|---|---|---|
![]() | ColorDifference() | 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. |
![]() | ColorDifference(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. |
![]() | ColorDifference(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. |
![]() | ColorDifference(Byte, Byte, Byte, Byte) | Initializes a new instance of the ColorDifference class, using the specified alpha, red, green, and blue values. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Compares the current object with another ColorDifference object.(Overrides Object::Equals(Object^).) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | Overrides object.GetHashCode.(Overrides Object::GetHashCode().) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | Returns the string representation of the ColorDifference.(Overrides Object::ToString().) |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality(ColorDifference^, ColorDifference^) | Operator overload for == operator. |
![]() ![]() | Inequality(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.




