Struct DxgiColorRgba
The structure represents a color value with alpha, which is used for transparency.
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
public struct DxgiColorRgba : IEquatable<DxgiColorRgba>
Properties
|
Edit this page
View Source
Alpha
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
|
Edit this page
View Source
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
|
Edit this page
View Source
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
|
Edit this page
View Source
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
Methods
|
Edit this page
View Source
Equals(DxgiColorRgba)
Declaration
public readonly bool Equals(DxgiColorRgba other)
Parameters
Returns
|
Edit this page
View Source
Equals(object?)
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
NativeReadFrom(nint)
Declaration
public static DxgiColorRgba NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<DxgiColorRgba>)
Declaration
public static void NativeReadFrom(nint buffer, Span<DxgiColorRgba> objects)
Parameters
|
Edit this page
View Source
NativeRequiredSize()
Declaration
public static int NativeRequiredSize()
Returns
|
Edit this page
View Source
NativeRequiredSize(int)
Declaration
public static int NativeRequiredSize(int count)
Parameters
| Type |
Name |
Description |
| int |
count |
|
Returns
|
Edit this page
View Source
NativeWriteTo(nint, in DxgiColorRgba)
Declaration
public static void NativeWriteTo(nint buffer, in DxgiColorRgba obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<DxgiColorRgba>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<DxgiColorRgba> objects)
Parameters
|
Edit this page
View Source
ToString()
Returns a string that represents the current object.
Declaration
public override readonly string ToString()
Returns
| Type |
Description |
| string |
A string that represents the current object.
|
Overrides
Operators
|
Edit this page
View Source
operator ==(DxgiColorRgba, DxgiColorRgba)
Declaration
public static bool operator ==(DxgiColorRgba left, DxgiColorRgba right)
Parameters
Returns
|
Edit this page
View Source
operator !=(DxgiColorRgba, DxgiColorRgba)
Declaration
public static bool operator !=(DxgiColorRgba left, DxgiColorRgba right)
Parameters
Returns
Implements