初始化 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。