D2D1_CAP_STYLE enumeration (d2d1.h)
Describes the shape at the end of a line or segment.
Syntax
typedef enum D2D1_CAP_STYLE {
D2D1_CAP_STYLE_FLAT = 0,
D2D1_CAP_STYLE_SQUARE = 1,
D2D1_CAP_STYLE_ROUND = 2,
D2D1_CAP_STYLE_TRIANGLE = 3,
D2D1_CAP_STYLE_FORCE_DWORD = 0xffffffff
} ;
Constants
D2D1_CAP_STYLE_FLAT Value: 0 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 Value: 1 Half of a square that has a length equal to the line thickness. |
D2D1_CAP_STYLE_ROUND Value: 2 A semicircle that has a diameter equal to the line thickness. |
D2D1_CAP_STYLE_TRIANGLE Value: 3 An isosceles right triangle whose hypotenuse is equal in length to the thickness of the line. |
D2D1_CAP_STYLE_FORCE_DWORD Value: 0xffffffff |
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
Requirement | Value |
---|---|
Minimum supported client | Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps] |
Header | d2d1.h |