Poly2d.Stroke Method

Returns a new poly that is a two-way offset of this poly, which for example is suitable when this poly is to be rasterized as a fat line. Line joins and end caps can be choosen. If the poly is closed, an exception will be thrown. The result is _not_ trimmed. See Union() function for this.
Public Function Stroke( _ 
ByVal strokeradius As Double, _ 
ByVal linecaps As LineCapMode, _ 
ByVal gaptype As OffsetGapType, _ 
ByVal maxdist As Double
) As Poly2d
This language is not supported or no code example is available.
public Poly2d Stroke( 
double strokeradius
LineCapMode linecaps
OffsetGapType gaptype
double maxdist 
)
This language is not supported or no code example is available.
public:  
Poly2d^ Stroke( 
double strokeradius
LineCapMode linecaps
OffsetGapType gaptype
double maxdist 
)
This language is not supported or no code example is available.
public function Stroke( 
strokeradius : double
linecaps : LineCapMode
gaptype : OffsetGapType
maxdist : double 
) : Poly2d;
This language is not supported or no code example is available.

Parameters

strokeradius
double

The offset distance of the line. The total thickness of the resulting polygon is this value time two.

linecaps
LineCapMode

Describes how the endcaps is created. See LineCapMode enumeration for details.

gaptype
OffsetGapType

Describes how the segments are joined. See OffsetGapType enumeration for details.

maxdist
double

The maximium distance to use if gaptype is Extend, otherwise this parameter is not used.

Return Value

Poly2d

A new poly which is a closed, 'fattened' version of this poly.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition