Click or drag to resize

ColorByte Structure

Describes a 32-bit packed color.

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

The ColorByte type exposes the following members.

Constructors
  NameDescription
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(ColorValue)
Initializes a new instance of the ColorByte class
Public methodColorByte(ColorValue)
Initializes a new instance of the ColorByte class
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
Operators
  NameDescription
Public operatorStatic memberEquality
Compares whether two ColorByte instances are equal.
Public operatorStatic memberInequality
Compares whether two ColorByte instances are not equal.
Top
Fields
  NameDescription
Public fieldStatic memberOne
Public fieldStatic memberZero
Top
Extension Methods
See Also