Color.A 属性

定义

获取或设置颜色的 sRGB alpha 通道值。Gets or sets the sRGB alpha channel value of the color.

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之间。The sRGB alpha channel value of the color, as a value between 0 and 255.

注解

此结构表示 Windows 运行时 (WinRT) 结构的 .NET 投影 ColorThis struct represents the .NET projection of the Windows Runtime (WinRT) Color struct. 有关详细信息,请参阅 UWP API 参考中的 颜色For more information, see Color in the UWP API reference.

每个像素的颜色表示为32位数字:分别为 alpha、红色、绿色和蓝色 (ARGB) 的8位。The color of each pixel is represented as a 32-bit number: 8 bits each for alpha, red, green, and blue (ARGB). Alpha 分量指定颜色的透明度:0表示完全透明,255表示完全不透明。The alpha component specifies the transparency of the color: 0 is fully transparent, and 255 is fully opaque. 同样,255 的值表示不透明 颜色。Likewise, an A value of 255 represents an opaque color. 一个介于1到254之间 的值, 表示半透明颜色。An A value from 1 through 254 represents a semitransparent color. 颜色变得更不透明 ,因为这种方法 255。The color becomes more opaque as A approaches 255.

适用于