module HexaPDF:: Content:: LineCapStyle
Defines all available line cap styles as constants. Each line cap style is an instance of NamedValue, see ::normalize. For use with e.g. Canvas#line_cap_style.
See: PDF2.0 s8.4.3.3
Constants
- BUTT_CAP¶
Stroke is squared off at the endpoint of a path.
Specify as 0 or
:butt.- PROJECTING_SQUARE_CAP¶
The stroke continues half the line width beyond the endpoint of a path.
Specify as 2 or
:projecting_square.- ROUND_CAP¶
A semicircular arc is drawn at the endpoint of a path.
Specify as 1 or
:round.
Public Class Methods
Returns the argument normalized to a valid line cap style, i.e. a NamedValue instance.
-
0 or
:buttcan be used for theBUTT_CAPstyle. -
1 or
:roundcan be used for theROUND_CAPstyle. -
2 or
:projecting_squarecan be used for thePROJECTING_SQUARE_CAPstyle. -
Otherwise an error is raised.


