Uredi

Deli z drugimi prek


Color.R Property

Definition

Gets or sets the sRGB red channel value of the color.

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

Property Value

The sRGB red channel value, 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). Each of the four components is a number from 0 through 255, with 0 representing no intensity and 255 representing full intensity. Likewise, R is a value from 0 to 255 with 0 representing no red and 255 representing fully red.

Applies to