Struct DxgiColorRgb
Represents an RGB color.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.Dxgi
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
public struct DxgiColorRgb : IEquatable<DxgiColorRgb>
Properties
| Edit this page View SourceBlue
Gets or sets a value representing the color of the blue component. The range of this value is between 0 and 1.
Declaration
public float Blue { get; set; }
Property Value
Type | Description |
---|---|
float |
Green
Gets or sets a value representing the color of the green component. The range of this value is between 0 and 1.
Declaration
public float Green { get; set; }
Property Value
Type | Description |
---|---|
float |
Red
Gets or sets a value representing the color of the red component. The range of this value is between 0 and 1.
Declaration
public float Red { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceEquals(DxgiColorRgb)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(DxgiColorRgb other)
Parameters
Type | Name | Description |
---|---|---|
DxgiColorRgb | 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 ==(DxgiColorRgb, DxgiColorRgb)
Compares two DxgiColorRgb objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(DxgiColorRgb left, DxgiColorRgb right)
Parameters
Type | Name | Description |
---|---|---|
DxgiColorRgb | left | The left DxgiColorRgb to compare. |
DxgiColorRgb | right | The right DxgiColorRgb to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(DxgiColorRgb, DxgiColorRgb)
Compares two DxgiColorRgb objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(DxgiColorRgb left, DxgiColorRgb right)
Parameters
Type | Name | Description |
---|---|---|
DxgiColorRgb | left | The left DxgiColorRgb to compare. |
DxgiColorRgb | right | The right DxgiColorRgb to compare. |
Returns
Type | Description |
---|---|
bool |