OELineCap¶
This namespace contains constants that control how the endpoints of lines are drawn.
See also
OEPen::GetLineCap
methodOEPen::SetLineCap
method
The OELineCap
namespace contains the
following constants:
Default
The default line cap style is
OELineCap::Round
.
Butt
Closes the line off with a straight edge that’s normal (at 90 degrees to) the direction of the stroke and crosses its end. See example in Figure: Example of line drawing with ‘Butt’ line cap style.

Example of line drawing with ‘Butt’ line cap style¶
Round
Produces a rounded effect on the end of the line. See example in Figure: Example of line drawing with ‘Round’ line cap style.

Example of line drawing with ‘Round’ line cap style¶
Square
Has the same appearance as the OELineCap::Butt
style, but stretches the line slightly beyond the actual path.
See example in Figure: Example of line drawing with ‘Square’ line cap style.

Example of line drawing with ‘Square’ line cap style¶