Struct DxgiColorRgba
The structure represents a color value with alpha, which is used for transparency.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.Dxgi
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
public struct DxgiColorRgba : IEquatable<DxgiColorRgba>
Properties
| Edit this page View SourceAlpha
Gets or sets value that specifies the alpha component of a color. This value generally is in the range from 0.0 through 1.0. A value of 0.0 indicates fully transparent, while a value of 1.0 indicates fully opaque.
Declaration
public float Alpha { get; set; }
Property Value
Type | Description |
---|---|
float |
Blue
Gets or sets a value that specifies the blue component of a color. This value generally is in the range from 0.0 through 1.0. A value of 0.0 indicates the complete absence of the blue component, while a value of 1.0 indicates that blue is fully present.
Declaration
public float Blue { get; set; }
Property Value
Type | Description |
---|---|
float |
Green
Gets or sets a value that specifies the green component of a color. This value generally is in the range from 0.0 through 1.0. A value of 0.0 indicates the complete absence of the green component, while a value of 1.0 indicates that green is fully present.
Declaration
public float Green { get; set; }
Property Value
Type | Description |
---|---|
float |
Red
Gets or sets a value that specifies the red component of a color. This value generally is in the range from 0.0 through 1.0. A value of 0.0 indicates the complete absence of the red component, while a value of 1.0 indicates that red is fully present.
Declaration
public float Red { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceEquals(DxgiColorRgba)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(DxgiColorRgba other)
Parameters
Type | Name | Description |
---|---|---|
DxgiColorRgba | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
| Edit this page View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |
Overrides
Operators
| Edit this page View Sourceoperator ==(DxgiColorRgba, DxgiColorRgba)
Compares two DxgiColorRgba objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(DxgiColorRgba left, DxgiColorRgba right)
Parameters
Type | Name | Description |
---|---|---|
DxgiColorRgba | left | The left DxgiColorRgba to compare. |
DxgiColorRgba | right | The right DxgiColorRgba to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(DxgiColorRgba, DxgiColorRgba)
Compares two DxgiColorRgba objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(DxgiColorRgba left, DxgiColorRgba right)
Parameters
Type | Name | Description |
---|---|---|
DxgiColorRgba | left | The left DxgiColorRgba to compare. |
DxgiColorRgba | right | The right DxgiColorRgba to compare. |
Returns
Type | Description |
---|---|
bool |