The RGBAColor type exposes the following members.

Constructors

  NameDescription
Public methodRGBAColor(array<Double>[]()[][])
vvvv color constructor
Public methodRGBAColor(Double, Double, Double, Double)
vvvv color constructor

Methods

  NameDescription
Public methodEquals(Object) (Overrides ValueType..::..Equals(Object).)
Public methodEquals(RGBAColor)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode (Overrides ValueType..::..GetHashCode()()()().)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Get string name for the color
(Overrides ValueType..::..ToString()()()().)

Operators

  NameDescription
Public operatorStatic memberAddition
Adds the color components of two colors
Public operatorStatic memberEquality
Public operatorStatic memberExplicitNarrowingExplicitExplicitExplicit(RGBAColor to Color)
Explicit cast from color to C# color
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(Color to RGBAColor)
Casts a C# color to a color
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(RGBAColor to Vector4D)
Casts a color to a 4d-vector
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(Vector4D to RGBAColor)
Casts a 4d-vector to a color
Public operatorStatic memberInequality
Public operatorStatic memberLogicalNot
! color, calculates the complementary color
Public operatorStatic memberMultiply(Double, RGBAColor)
Multiplies a factor with a color
Public operatorStatic memberMultiply(RGBAColor, Double)
Multiplies a color with a factor
Public operatorStatic memberMultiply(RGBAColor, RGBAColor)
Multiplies two colors, RGBA component wise
Public operatorStatic memberOnesComplement
~ color, calculates the brighness of a color with the formula 0.222 * R + 0.707 * G + 0.071 * B
Public operatorStatic memberSubtraction
Subtracts the color components of two colors
Public operatorStatic memberUnaryNegation
- color, flips the sign off all color components
Public operatorStatic memberUnaryPlus
+ color, makes no changes to a color

Fields

  NameDescription
Public fieldA
The Alpha data field
Public fieldB
The Blue data field
Public fieldG
The Green data field
Public fieldR
The Red data field

Properties

  NameDescription
Public propertyColor
C# color type property, can be used for conversion Note, that there is also implicit casting from C# color, and explicit casting to C# color

See Also