D2D1_CAP_STYLE enumeration
Describes the shape at the end of a line or segment.
Syntax
typedef enum { D2D1_CAP_STYLE_FLAT = 0, D2D1_CAP_STYLE_SQUARE = 1, D2D1_CAP_STYLE_ROUND = 2, D2D1_CAP_STYLE_TRIANGLE = 3 } D2D1_CAP_STYLE;
Constants
- D2D1_CAP_STYLE_FLAT
-
A cap that does not extend past the last point of the line. Comparable to cap used for objects other than lines.
- D2D1_CAP_STYLE_SQUARE
-
Half of a square that has a length equal to the line thickness.
- D2D1_CAP_STYLE_ROUND
-
A semicircle that has a diameter equal to the line thickness.
- D2D1_CAP_STYLE_TRIANGLE
-
An isosceles right triangle whose hypotenuse is equal in length to the thickness of the line.
Remarks
The following illustration shows the available cap styles for lines or segments. The red portion of the line shows the extra area added by the line cap setting.

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 |
|