Struct DxgiGammaControl
Controls the settings of a gamma curve.
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
public struct DxgiGammaControl : IEquatable<DxgiGammaControl>
Fields
|
Edit this page
View Source
GammaCurveLength
Gets the count of DxgiColorRgb structures that control the points of a gamma curve.
Declaration
public const int GammaCurveLength = 1025
Field Value
Properties
|
Edit this page
View Source
Offset
Gets or sets a DxgiColorRgb structure with offset values that are applied to the RGB values before being sent to the gamma look up table.
Declaration
public DxgiColorRgb Offset { get; set; }
Property Value
|
Edit this page
View Source
Scale
Gets or sets a DxgiColorRgb structure with scalar values that are applied to RGB values before being sent to the gamma look up table.
Declaration
public DxgiColorRgb Scale { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(DxgiGammaControl)
Declaration
public readonly bool Equals(DxgiGammaControl 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
GetGammaCurve()
Gets an array of DxgiColorRgb structures that control the points of a gamma curve.
Declaration
public readonly DxgiColorRgb[] GetGammaCurve()
Returns
|
Edit this page
View Source
GetGammaCurveAsSpan()
Gets an array as span of DxgiColorRgb structures that control the points of a gamma curve.
Declaration
public readonly ReadOnlySpan<DxgiColorRgb> GetGammaCurveAsSpan()
Returns
|
Edit this page
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
NativeReadFrom(nint)
Declaration
public static DxgiGammaControl NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<DxgiGammaControl>)
Declaration
public static void NativeReadFrom(nint buffer, Span<DxgiGammaControl> 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 DxgiGammaControl)
Declaration
public static void NativeWriteTo(nint buffer, in DxgiGammaControl obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<DxgiGammaControl>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<DxgiGammaControl> objects)
Parameters
|
Edit this page
View Source
SetGammaCurve(DxgiColorRgb[]?)
Sets an array of DxgiColorRgb structures that control the points of a gamma curve.
Declaration
public void SetGammaCurve(DxgiColorRgb[]? curve)
Parameters
|
Edit this page
View Source
SetGammaCurve(ReadOnlySpan<DxgiColorRgb>)
Sets an array of DxgiColorRgb structures that control the points of a gamma curve.
Declaration
public void SetGammaCurve(ReadOnlySpan<DxgiColorRgb> curve)
Parameters
Operators
|
Edit this page
View Source
operator ==(DxgiGammaControl, DxgiGammaControl)
Declaration
public static bool operator ==(DxgiGammaControl left, DxgiGammaControl right)
Parameters
Returns
|
Edit this page
View Source
operator !=(DxgiGammaControl, DxgiGammaControl)
Declaration
public static bool operator !=(DxgiGammaControl left, DxgiGammaControl right)
Parameters
Returns
Implements