Click or drag to resize

ColorByte Structure

Describes a 32-bit packed color.
Inheritance Hierarchy
SystemObject
  SystemValueType
    NeoAxisColorByte

Namespace: NeoAxis
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public struct ColorByte : IEquatable<ColorByte>

The ColorByte type exposes the following members.

Constructors
 NameDescription
Public methodColorByte(ColorValue)Initializes a new instance of the ColorByte class
Public methodColorByte(ColorValue)Initializes a new instance of the ColorByte class
Public methodColorByte(UInt32) Constructs an RGBA color from a packed value. The value is a 32-bit unsigned integer, with R in the least significant octet.
Public methodColorByte(Vector3) Constructs an RGBA color from the XYZ unit length components of a vector. Alpha value will be opaque.
Public methodColorByte(Vector3F) Constructs an RGBA color from the XYZ unit length components of a vector. Alpha value will be opaque.
Public methodColorByte(Vector4) Constructs an RGBA color from the XYZW unit length components of a vector.
Public methodColorByte(Vector4F) Constructs an RGBA color from the XYZW unit length components of a vector.
Public methodColorByte(Byte, Byte, Byte, Byte) Constructs an RGBA color from scalars representing red, green, blue and alpha values.
Public methodColorByte(Int32, Int32, Int32, Int32) Constructs an RGBA color from scalars representing red, green, blue and alpha values.
Public methodColorByte(Single, Single, Single, Single) Constructs an RGBA color from scalars representing red, green, blue and alpha values.
Top
Properties
 NameDescription
Public propertyAlpha Gets or sets the alpha component.
Public propertyBlue Gets or sets the blue component.
Public propertyGreen Gets or sets the green component.
Public propertyItem 
Public propertyPackedValue Gets or sets packed value of this [!:ColorPacked].
Public propertyRed Gets or sets the red component.
Top
Methods
 NameDescription
Public methodEquals(ColorByte) Compares whether current instance is equal to specified [!:ColorPacked].
Public methodEquals(Object) Compares whether current instance is equal to specified object.
(Overrides ValueTypeEquals(Object))
Public methodStatic memberFromABGR 
Public methodStatic memberFromARGB 
Public methodGetHashCode Gets the hash code of this ColorByte.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberLerp Performs linear interpolation of ColorByte.
Public methodStatic memberParse 
Public methodStatic memberSelect 
Public methodToABGR 
Public methodToARGB 
Public methodToColorValue 
Public methodToColorValuePowered 
Public methodToString
(Overrides ValueTypeToString)
Public methodToVector3 
Public methodToVector3F 
Public methodToVector4 
Public methodToVector4F 
Top
Operators
 NameDescription
Public operatorStatic memberEquality(ColorByte, ColorByte) Compares whether two ColorByte instances are equal.
Public operatorStatic memberInequality(ColorByte, ColorByte) Compares whether two ColorByte instances are not equal.
Top
Fields
 NameDescription
Public fieldStatic memberOne 
Public fieldStatic memberZero 
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also