ColorByte Structure |
Namespace: NeoAxis
public struct ColorByte : IEquatable<ColorByte>
The ColorByte type exposes the following members.
| Name | Description | |
|---|---|---|
| ColorByte(UInt32) |
Constructs an RGBA color from a packed value.
The value is a 32-bit unsigned integer, with R in the least significant octet.
| |
| ColorByte(ColorValue) | Initializes a new instance of the ColorByte class | |
| ColorByte(ColorValue) | Initializes a new instance of the ColorByte class | |
| ColorByte(Vector3) |
Constructs an RGBA color from the XYZ unit length components of a vector. Alpha value will be opaque.
| |
| ColorByte(Vector3F) |
Constructs an RGBA color from the XYZ unit length components of a vector. Alpha value will be opaque.
| |
| ColorByte(Vector4) |
Constructs an RGBA color from the XYZW unit length components of a vector.
| |
| ColorByte(Vector4F) |
Constructs an RGBA color from the XYZW unit length components of a vector.
| |
| ColorByte(Byte, Byte, Byte, Byte) |
Constructs an RGBA color from scalars representing red, green, blue and alpha values.
| |
| ColorByte(Int32, Int32, Int32, Int32) |
Constructs an RGBA color from scalars representing red, green, blue and alpha values.
| |
| ColorByte(Single, Single, Single, Single) |
Constructs an RGBA color from scalars representing red, green, blue and alpha values.
|
| Name | Description | |
|---|---|---|
| Alpha |
Gets or sets the alpha component.
| |
| Blue |
Gets or sets the blue component.
| |
| Green |
Gets or sets the green component.
| |
| Item | ||
| PackedValue |
Gets or sets packed value of this [!:ColorPacked].
| |
| Red |
Gets or sets the red component.
|
| Name | Description | |
|---|---|---|
| Equals(Object) |
Compares whether current instance is equal to specified object.
(Overrides ValueTypeEquals(Object).) | |
| Equals(ColorByte) |
Compares whether current instance is equal to specified [!:ColorPacked].
| |
| FromABGR | ||
| FromARGB | ||
| GetHashCode |
Gets the hash code of this ColorByte.
(Overrides ValueTypeGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Lerp |
Performs linear interpolation of ColorByte.
| |
| Parse | ||
| Select | ||
| ToABGR | ||
| ToARGB | ||
| ToColorValue | ||
| ToColorValuePowered | ||
| ToString | (Overrides ValueTypeToString.) | |
| ToVector3 | ||
| ToVector3F | ||
| ToVector4 | ||
| ToVector4F |
| Name | Description | |
|---|---|---|
| Equality |
Compares whether two ColorByte instances are equal.
| |
| Inequality |
Compares whether two ColorByte instances are not equal.
|
| Name | Description | |
|---|---|---|
| MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx.) | |
| PropertyGet(String, Object, Boolean) | Overloaded.
Gets the value of the object property by name.
(Defined by ObjectEx.) | |
| PropertyGetT(String, Object, Boolean) | Overloaded.
Gets the value of the object property by name.
(Defined by ObjectEx.) | |
| PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx.) |