Color.A 屬性

定義

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

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

屬性值

Byte

色彩的 sRGB Alpha 通道值,以介於0到255之間的值。

備註

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

每個圖元的色彩會以32位數位表示: Alpha、紅色、綠色和藍色 (ARGB) 的8位。 Alpha 元件會指定色彩的透明度:0是完全透明的,而255則完全不透明。 同樣地, 值 255 表示不透明的色彩。 從1到 254 值表示半透明色彩。 色彩會變得比較不透明,因為這 是一 種方法255。

適用於