共用方式為


ColorDifference 建構函式 (Byte, Byte, Byte, Byte)

使用指定的 Alpha,紅色,綠色和藍色值,初始化 ColorDifference 類別的新執行個體。

命名空間:  Microsoft.VisualStudio.TestTools.UITesting
組件:  Microsoft.VisualStudio.TestTools.UITesting (在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)

語法

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

參數

  • alpha
    類型:Byte

    Alpha (透明) 色彩色板差異。

  • red
    類型:Byte

    紅色色頻差異。

  • green
    類型:Byte

    綠色色頻差異。

  • blue
    類型:Byte

    藍色色頻差異。

.NET Framework 安全性

請參閱

參考

ColorDifference 類別

ColorDifference 多載

Microsoft.VisualStudio.TestTools.UITesting 命名空間