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 Poly2d Stroke( 
   double strokeradius
   LineCapMode linecaps
   OffsetGapType gaptype
   double maxdist 
)

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