Color.G 属性

定义

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

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之间。The sRGB green channel value, 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). 这四个组件都是0到255之间的一个数字,0表示没有强度,255表示完全强度。Each of the four components is a number from 0 through 255, with 0 representing no intensity and 255 representing full intensity. 同样, G 是0到255之间的值,0表示无绿色,255表示完全绿色。Likewise, G is a value from 0 to 255 with 0 representing no green and 255 representing fully green.

适用于