Edit

Share via


Color.A Property

Definition

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

Property Value

The sRGB alpha channel value of the color, as a value between 0 and 255.

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) Color struct. For more information, see Color in the UWP API reference.

The color of each pixel is represented as a 32-bit number: 8 bits each for alpha, red, green, and blue (ARGB). The alpha component specifies the transparency of the color: 0 is fully transparent, and 255 is fully opaque. Likewise, an A value of 255 represents an opaque color. An A value from 1 through 254 represents a semitransparent color. The color becomes more opaque as A approaches 255.

Applies to