StrokeStyleProperties function
Creates a D2D1_STROKE_STYLE_PROPERTIES structure.
Syntax
D2D1_STROKE_STYLE_PROPERTIES StrokeStyleProperties( D2D1_CAP_STYLE startCap = D2D1_CAP_STYLE_FLAT, D2D1_CAP_STYLE endCap = D2D1_CAP_STYLE_FLAT, D2D1_CAP_STYLE dashCap = D2D1_CAP_STYLE_FLAT, D2D1_LINE_JOIN lineJoin = D2D1_LINE_JOIN_MITER, FLOAT miterLimit = 10.f, D2D1_DASH_STYLE dashStyle = D2D1_DASH_STYLE_SOLID, FLOAT dashOffset = 0.f. );
Parameters
- startCap
-
Type: D2D1_CAP_STYLE
The shape at the beginning of a stroke. The default value is D2D1_CAP_STYLE_FLAT.
- endCap
-
Type: D2D1_CAP_STYLE
The shape at the end of a stroke. The default value is D2D1_CAP_STYLE_FLAT.
- dashCap
-
Type: D2D1_CAP_STYLE
The shape at either end of each dash segment. The default value is D2D1_CAP_STYLE_FLAT.
- lineJoin
-
Type: D2D1_LINE_JOIN
A value that describes how segments are joined. The default value is D2D1_LINE_JOIN_MITER.
- miterLimit
-
Type: FLOAT
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. The default value is 10.0f.
- dashStyle
-
Type: D2D1_DASH_STYLE
A value that specifies whether the stroke has a dash pattern and, if so, the dash style. The default value is D2D1_DASH_STYLE_SOLID.
- dashOffset
-
Type: FLOAT
A value that specifies how far in the dash sequence the stroke will start. The default value is 0.0f.
Return value
Type: D2D1_STROKE_STYLE_PROPERTIES
The new stroke style.
Requirements
|
Minimum supported client |
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
|
Header |
|
|
Library |
|
|
DLL |
|