Struct RGBValue
A simple class which stores red, green and blue values as 8 bit unsigned integers in the range of 0-255.
public struct RGBValue : IEquatable<RGBValue>
- Implements
Constructors
- RGBValue()
Initializes a new instance of the RGBValue.
- RGBValue(byte, byte, byte)
Initializes a new instance of the RGBValue.
Fields
- B
Blue component of a color.
- G
Green component of a color.
- R
Red component of a color.
Properties
- AsDebugString
Gets color name and ARGB for the debug purposes.
Methods
- Equals(RGBValue)
Indicates whether the current object is equal to another object of the same type.
- Equals(object?)
Tests whether
obj
is a RGBValue and is equal to this object
- GetHashCode()
Gets the hash code for this RectD.
- ToString()
Gets string representation of this object.
- WithAlpha(byte)
Returns this object as SKColor with the specified alpha component.
Operators
- operator ==(RGBValue, RGBValue)
Tests whether two RGBValue objects are equal.
- implicit operator RGBValue((byte, byte, byte))
Implicit operator convertion from tuple with three byte values to RGBValue.
- operator !=(RGBValue, RGBValue)
Tests whether two RGBValue objects are different.