Struct D2D1GradientStop
Contains the position and color of a gradient stop.
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public struct D2D1GradientStop : IEquatable<D2D1GradientStop>
Constructors
|
Edit this page
View Source
D2D1GradientStop(float, D2D1ColorF)
Declaration
public D2D1GradientStop(float position, D2D1ColorF color)
Parameters
| Type |
Name |
Description |
| float |
position |
A value that indicates the relative position of the gradient stop in the brush. This value must be in the [0.0f, 1.0f] range if the gradient stop is to be seen explicitly.
|
| D2D1ColorF |
color |
The color of the gradient stop.
|
Properties
|
Edit this page
View Source
Color
Gets or sets the color of the gradient stop.
Declaration
public D2D1ColorF Color { get; set; }
Property Value
|
Edit this page
View Source
Position
Gets or sets a value that indicates the relative position of the gradient stop in the brush. This value must be in the [0.0f, 1.0f] range if the gradient stop is to be seen explicitly.
Declaration
public float Position { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(D2D1GradientStop)
Declaration
public readonly bool Equals(D2D1GradientStop 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 D2D1GradientStop NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<D2D1GradientStop>)
Declaration
public static void NativeReadFrom(nint buffer, Span<D2D1GradientStop> 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 D2D1GradientStop)
Declaration
public static void NativeWriteTo(nint buffer, in D2D1GradientStop obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<D2D1GradientStop>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<D2D1GradientStop> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(D2D1GradientStop, D2D1GradientStop)
Declaration
public static bool operator ==(D2D1GradientStop left, D2D1GradientStop right)
Parameters
Returns
|
Edit this page
View Source
operator !=(D2D1GradientStop, D2D1GradientStop)
Declaration
public static bool operator !=(D2D1GradientStop left, D2D1GradientStop right)
Parameters
Returns
Implements