Share via


ColorDifference Constructor (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.

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

Syntax

'Declaration
Public Sub New ( _
    rgbTolerance As Byte _
)
public ColorDifference(
    byte rgbTolerance
)
public:
ColorDifference(
    unsigned char rgbTolerance
)
new : 
        rgbTolerance:byte -> ColorDifference
public function ColorDifference(
    rgbTolerance : byte
)

Parameters

  • rgbTolerance
    Type: Byte

    The red, green, and blue color channel difference.

.NET Framework Security

See Also

Reference

ColorDifference Class

ColorDifference Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace