Struct D2D1StrokeStyleProperties
Describes the stroke that outlines a shape.
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public struct D2D1StrokeStyleProperties : IEquatable<D2D1StrokeStyleProperties>
Constructors
|
Edit this page
View Source
D2D1StrokeStyleProperties(D2D1CapStyle, D2D1CapStyle, D2D1CapStyle, D2D1LineJoin, float, D2D1DashStyle, float)
Declaration
public D2D1StrokeStyleProperties(D2D1CapStyle startCap, D2D1CapStyle endCap, D2D1CapStyle dashCap, D2D1LineJoin lineJoin, float miterLimit, D2D1DashStyle dashStyle, float dashOffset)
Parameters
| Type |
Name |
Description |
| D2D1CapStyle |
startCap |
The cap applied to the start of all the open figures in a stroked geometry.
|
| D2D1CapStyle |
endCap |
The cap applied to the end of all the open figures in a stroked geometry.
|
| D2D1CapStyle |
dashCap |
The shape at either end of each dash segment.
|
| D2D1LineJoin |
lineJoin |
A value that describes how segments are joined.
|
| float |
miterLimit |
The limit of the thickness of the join on a mitered corner. This value is always treated as though it is greater than or equal to 1.0f.
|
| D2D1DashStyle |
dashStyle |
A value that specifies whether the stroke has a dash pattern and, if so, the dash style.
|
| float |
dashOffset |
A value that specifies an offset in the dash sequence. A positive dash offset value shifts the dash pattern, in units of stroke width, toward the start of the stroked geometry. A negative dash offset value shifts the dash pattern, in units of stroke width, toward the end of the stroked geometry.
|
Properties
|
Edit this page
View Source
DashCap
Gets or sets the shape at either end of each dash segment.
Declaration
public D2D1CapStyle DashCap { get; set; }
Property Value
|
Edit this page
View Source
DashOffset
Gets or sets a value that specifies an offset in the dash sequence. A positive dash offset value shifts the dash pattern, in units of stroke width, toward the start of the stroked geometry. A negative dash offset value shifts the dash pattern, in units of stroke width, toward the end of the stroked geometry.
Declaration
public float DashOffset { get; set; }
Property Value
|
Edit this page
View Source
DashStyle
Gets or sets a value that specifies whether the stroke has a dash pattern and, if so, the dash style.
Declaration
public D2D1DashStyle DashStyle { get; set; }
Property Value
|
Edit this page
View Source
Default
Gets default properties (Flat, Flat, Flat, Miter, 10, Solid, 0).
Declaration
public static D2D1StrokeStyleProperties Default { get; }
Property Value
|
Edit this page
View Source
EndCap
Gets or sets the cap applied to the end of all the open figures in a stroked geometry.
Declaration
public D2D1CapStyle EndCap { get; set; }
Property Value
|
Edit this page
View Source
LineJoin
Gets or sets a value that describes how segments are joined.
Declaration
public D2D1LineJoin LineJoin { get; set; }
Property Value
|
Edit this page
View Source
MiterLimit
Gets or sets the limit of the thickness of the join on a mitered corner. This value is always treated as though it is greater than or equal to 1.0f.
Declaration
public float MiterLimit { get; set; }
Property Value
|
Edit this page
View Source
StartCap
Gets or sets the cap applied to the start of all the open figures in a stroked geometry.
Declaration
public D2D1CapStyle StartCap { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(D2D1StrokeStyleProperties)
Declaration
public readonly bool Equals(D2D1StrokeStyleProperties 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 D2D1StrokeStyleProperties NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<D2D1StrokeStyleProperties>)
Declaration
public static void NativeReadFrom(nint buffer, Span<D2D1StrokeStyleProperties> 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 D2D1StrokeStyleProperties)
Declaration
public static void NativeWriteTo(nint buffer, in D2D1StrokeStyleProperties obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<D2D1StrokeStyleProperties>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<D2D1StrokeStyleProperties> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(D2D1StrokeStyleProperties, D2D1StrokeStyleProperties)
Declaration
public static bool operator ==(D2D1StrokeStyleProperties left, D2D1StrokeStyleProperties right)
Parameters
Returns
|
Edit this page
View Source
operator !=(D2D1StrokeStyleProperties, D2D1StrokeStyleProperties)
Declaration
public static bool operator !=(D2D1StrokeStyleProperties left, D2D1StrokeStyleProperties right)
Parameters
Returns
Implements