Share via


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

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

Syntax

'Declaration
Public Sub New ( _
    red As Byte, _
    green As Byte, _
    blue As Byte _
)
public ColorDifference(
    byte red,
    byte green,
    byte blue
)
public:
ColorDifference(
    unsigned char red, 
    unsigned char green, 
    unsigned char blue
)
new : 
        red:byte * 
        green:byte * 
        blue:byte -> ColorDifference
public function ColorDifference(
    red : byte, 
    green : byte, 
    blue : byte
)

Parameters

  • red
    Type: Byte

    The red color channel difference.

  • green
    Type: Byte

    The green color channel difference.

  • blue
    Type: Byte

    The blue color channel difference.

.NET Framework Security

See Also

Reference

ColorDifference Class

ColorDifference Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace