This is preliminary documentation and is subject to change.
A four-component (RGBA) color value; each component is a float in the range [0,1].
| C# | Visual Basic | C++/CLI |
[SerializableAttribute] [TypeConverterAttribute(typeof(Color4Converter))] public struct Color4
<SerializableAttribute> _ <TypeConverterAttribute(GetType(Color4Converter))> _ Public Structure Color4
[SerializableAttribute] [TypeConverterAttribute(typeof(Color4Converter))] public value class Color4
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| Color4(Int32) |
Initializes a new instance of the Color4 structure.
| |
| Color4(Vector4) |
Initializes a new instance of the Color4 structure.
| |
| Color4(Vector3) |
Initializes a new instance of the Color4 structure.
| |
| Color4(Color3) |
Initializes a new instance of the Color4 structure.
| |
| Color4(Color) |
Initializes a new instance of the Color4 structure.
| |
| Color4(Single, Single, Single) |
Initializes a new instance of the Color4 structure.
| |
| Color4(Single, Single, Single, Single) |
Initializes a new instance of the Color4 structure.
| |
| Add(Color4%, Color4%, Color4%) |
Adds two colors.
| |
| Add(Color4, Color4) |
Adds two colors.
| |
| Addition(Color4, Color4) |
Adds two colors.
| |
| AdjustContrast(Color4%, Single, Color4%) |
Adjusts the contrast of a color.
| |
| AdjustContrast(Color4, Single) |
Adjusts the contrast of a color.
| |
| AdjustSaturation(Color4%, Single, Color4%) |
Adjusts the saturation of a color.
| |
| AdjustSaturation(Color4, Single) |
Adjusts the saturation of a color.
| |
| Alpha |
Gets or sets the color's alpha component.
| |
| Blue |
Gets or sets the color's blue component.
| |
| Equality(Color4, Color4) |
Tests for equality between two objects.
| |
| Equals(Color4%, Color4%) |
Determines whether the specified object instances are considered equal.
| |
| Equals(Color4) |
Returns a value that indicates whether the current instance is equal to the specified object.
| |
| Equals(Object) |
Returns a value that indicates whether the current instance is equal to a specified object.
(Overrides ValueType.Equals(Object).) | |
| Explicit(Color4) |
Performs an explicit conversion from Color4 to Int32.
| |
| Explicit(Color4) |
Performs an explicit conversion from Color4 to Color3.
| |
| Explicit(Color4) |
Performs an explicit conversion from Color4 to Vector3.
| |
| Explicit(Color4) |
Performs an explicit conversion from Color4 to Vector4.
| |
| Explicit(Vector4) |
Performs an explicit conversion from Vector4 to Color4.
| |
| Explicit(Vector3) |
Performs an explicit conversion from Vector3 to Color4.
| |
| Explicit(Color3) |
Performs an explicit conversion from Color3 to Color4.
| |
| Explicit(Int32) |
Performs an explicit conversion from Int32 to Color4.
| |
| Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode()()() |
Returns the hash code for this instance.
(Overrides ValueType.GetHashCode()()().) | |
| GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| Green |
Gets or sets the color's green component.
| |
| Implicit(Color) |
Performs an implicit conversion from Color to Color4.
| |
| Implicit(Color4) |
Performs an implicit conversion from Color4 to Color.
| |
| Inequality(Color4, Color4) |
Tests for inequality between two objects.
| |
| Lerp(Color4%, Color4%, Single, Color4%) |
Performs a linear interpolation between two colors.
| |
| Lerp(Color4, Color4, Single) |
Performs a linear interpolation between two colors.
| |
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Modulate(Color4%, Color4%, Color4%) |
Modulates two colors.
| |
| Modulate(Color4, Color4) |
Modulates two colors.
| |
| Multiply(Color4, Color4) |
Modulates two colors.
| |
| Multiply(Single, Color4) |
Scales a color by the specified amount.
| |
| Multiply(Color4, Single) |
Scales a color by the specified amount.
| |
| Negate(Color4%, Color4%) |
Negates a color.
| |
| Negate(Color4) |
Negates a color.
| |
| Red |
Gets or sets the color's red component.
| |
| Scale(Color4%, Single, Color4%) |
Scales a color by the specified amount.
| |
| Scale(Color4, Single) |
Scales a color by the specified amount.
| |
| Subtract(Color4%, Color4%, Color4%) |
Subtracts two colors.
| |
| Subtract(Color4, Color4) |
Subtracts two colors.
| |
| Subtraction(Color4, Color4) |
Subtracts two colors.
| |
| ToArgb()()() |
Converts the color into a packed integer.
| |
| ToColor()()() |
Converts the color to a Color.
| |
| ToColor3()()() |
Converts the color to a a 3 component (RGB) color.
| |
| ToString()()() |
Converts the value of the object to its equivalent string representation.
(Overrides ValueType.ToString()()().) | |
| ToVector3()()() |
Converts the color into a three component vector.
| |
| ToVector4()()() |
Converts the color into a four component vector.
| |
| UnaryNegation(Color4) |
Negates a color.
|
Assembly: SlimDX (Module: SlimDX)