Color.G 屬性

定義

取得或設定色彩的 sRGB 綠色色頻值。

public:
 property System::Byte G { System::Byte get(); void set(System::Byte value); };
public byte G { get; set; }
member this.G : byte with get, set
Public Property G As Byte

屬性值

Byte

SRGB 綠色通道值,以介於0和255之間的值表示。

備註

此結構代表 Windows 執行階段 (WinRT) 結構的 .net 投影 Color 。 如需詳細資訊,請參閱 UWP API 參考中的 色彩

每個圖元的色彩會以32位數位表示: Alpha、紅色、綠色和藍色 (ARGB) 的8位。 四個元件的每一個都是從0到255的數位,0代表沒有濃度,而255代表完整強度。 同樣地, G 是從0到255的值,0代表無綠色,而255表示全綠色。

適用於