共用方式為


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 命名空間