THPDFPage.SetLineCap

THPDFPage

 

Top  Previous  Next

Sets the line cap style.

 

type

TLineCapStyle = ( lcButtEnd, lcRoundEnd, lcProjectSquareEnd );

 

Delphi syntax:

procedure SetLineCap ( Linecap: TLineCapStyle );

 

C++ syntax:

void __fastcall SetLineCap ( TLineCapStyle Linecap );

 

 

Description:

Set the line cap style in the graphics state.

 

Value                Meaning


lcButtEnd                Butt cap. The stroke is squared off at the endpoint of the path.

                       There is no projection beyond the end of the path.Butt line cap diagram

lcRoundEnd                Round cap. A semicircular arc with a diameter equal to the line width

                       is drawn around the endpoint and filled in. Round line cap diagram

lcProjectSquareEnd        Projecting square cap. The stroke continues beyond the endpoint of the path

                       for a distance equal to half the line width and is then squared off.  Projecting square line cap diagram