RColor
Represents an ARGB (alpha, red, green, blue) color.
プロパティ
IsEmpty : bool
Specifies whether this RColor structure is uninitialized.
戻り値: This property returns true if this color is uninitialized; otherwise, false.
Transparent : RColor
Gets a system-defined color.
WhiteSmoke : RColor
Gets a system-defined color that has an ARGB value of #FFF5F5F5.
メソッド
Equals(object) : bool
Tests whether the specified object is a RColor structure and is equivalent to this RColor structure.
- obj
- The object to test.
戻り値: true if is a RColor structure equivalent to this RColor structure; otherwise, false.
FromArgb(int, int, int, int) : RColor
Creates a RColor structure from the four ARGB component (alpha, red, green, and blue) values. Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.
- alpha
- The alpha component. Valid values are 0 through 255.
- red
- The red component. Valid values are 0 through 255.
- green
- The green component. Valid values are 0 through 255.
- blue
- The blue component. Valid values are 0 through 255.
戻り値: The RColor that this method creates.
FromArgb(int, int, int) : RColor
Creates a RColor structure from the specified 8-bit color values (red, green, and blue). The alpha value is implicitly 255 (fully opaque). Although this method allows a 32-bit value to be passed for each color component, the value of each component is limited to 8 bits.
- red
- The red component value for the new RColor. Valid values are 0 through 255.
- green
- The green component value for the new RColor. Valid values are 0 through 255.
- blue
- The blue component value for the new RColor. Valid values are 0 through 255.
戻り値: The RColor that this method creates.
GetHashCode() : int
Returns a hash code for this RColor structure.
戻り値: An integer value that specifies the hash code for this RColor.
op_Equality(RColor, RColor) : bool
Tests whether two specified RColor structures are equivalent.
- left
- The RColor that is to the left of the equality operator.
- right
- The RColor that is to the right of the equality operator.
戻り値: true if the two RColor structures are equal; otherwise, false.
op_Inequality(RColor, RColor) : bool
Tests whether two specified RColor structures are different.
- left
- The RColor that is to the left of the inequality operator.
- right
- The RColor that is to the right of the inequality operator.
戻り値: true if the two RColor structures are different; otherwise, false.