ColorDifference 构造函数 (Byte)

初始化 ColorDifference 类的一个新实例,将红色、绿色和蓝色设置为指定值。

Alpha 将设置为 255,指示透明度的最大容错。

命名空间:  Microsoft.VisualStudio.TestTools.UITesting
程序集:  Microsoft.VisualStudio.TestTools.UITesting(在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)

语法

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

参数

  • rgbTolerance
    类型:Byte

    红色,绿色和蓝色颜色通道差异。

.NET Framework 安全性

请参阅

参考

ColorDifference 类

ColorDifference 重载

Microsoft.VisualStudio.TestTools.UITesting 命名空间