D2D1_CAP_STYLE Enumeration

Describes the shape at the end of a line or segment.

Syntax

typedef enum D2D1_CAP_STYLE {
  D2D1_CAP_STYLE_FLAT         ,
  D2D1_CAP_STYLE_SQUARE       ,
  D2D1_CAP_STYLE_ROUND        ,
  D2D1_CAP_STYLE_TRIANGLE     ,
  D2D1_CAP_STYLE_FORCE_DWORD
} ;

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

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.

Illustration of four cap styles

Requirements

   
Windows version Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps] Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Header d2d1.h