Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents the per-channel difference between two colors, used to represent tolerance.
Inheritance Hierarchy
Object
  Microsoft.VisualStudio.TestTools.UITesting.ColorDifference
Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
<CLSCompliantAttribute(True)> _
Public Class ColorDifference
[CLSCompliantAttribute(true)]
public class ColorDifference
[CLSCompliantAttribute(true)]
public ref class ColorDifference
[<CLSCompliantAttribute(true)>]
type ColorDifference =  class end
public class ColorDifference
The ColorDifference type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | 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. | 
| .gif) | 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. | 
| .gif) | 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. | 
| .gif) | ColorDifference(Byte, Byte, Byte, Byte) | Initializes a new instance of the ColorDifference class, using the specified alpha, red, green, and blue values. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | Alpha | Alpha (transparency) color channel difference. | 
| .gif) | Blue | Blue color channel difference. | 
| .gif) | Green | Green color channel difference. | 
| .gif) | Red | Red color channel difference. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Equals | Compares the current object with another ColorDifference object. (Overrides Object.Equals(Object).) | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetHashCode | Overrides object.GetHashCode. (Overrides Object.GetHashCode.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | ToString | Returns the string representation of the ColorDifference. (Overrides Object.ToString.) | 
Top
Operators
| Name | Description | |
|---|---|---|
| .gif) .gif) | Equality | Operator overload for == operator. | 
| .gif) .gif) | Inequality | Operator overload for the != operator. | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.