Table of Contents

Class StrokeOptions

Namespace
SixLabors.PolygonClipper
Assembly
SixLabors.PolygonClipper.dll

Provides configuration options for geometric stroke generation.

public sealed class StrokeOptions : IEquatable<StrokeOptions?>
Inheritance
StrokeOptions
Implements
Inherited Members

Properties

ArcDetailScale

Gets or sets the tessellation detail scale for round joins and round caps. Higher values produce more vertices (smoother curves, more work). Lower values produce fewer vertices.

public double ArcDetailScale { get; set; }

Property Value

double

LineCap

Gets or sets the line cap style used for open path ends.

public LineCap LineCap { get; set; }

Property Value

LineCap

LineJoin

Gets or sets the outer line join style used for stroking corners.

public LineJoin LineJoin { get; set; }

Property Value

LineJoin

MiterLimit

Gets or sets the miter limit used to clamp outer miter joins.

public double MiterLimit { get; set; }

Property Value

double

NormalizeOutput

Gets or sets a value indicating whether stroked contours should be normalized by resolving self-intersections and overlaps before returning.

public bool NormalizeOutput { get; set; }

Property Value

bool

Remarks

Defaults to false for maximum throughput. When disabled, callers should rasterize with a non-zero winding fill rule.

Methods

Equals(StrokeOptions?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(StrokeOptions? other)

Parameters

other StrokeOptions

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.