Table of Contents

Class ShapeOptions

Namespace
SixLabors.ImageSharp.Drawing.Processing
Assembly
SixLabors.ImageSharp.Drawing.dll

Provides options for controlling how vector shapes are interpreted during rasterization, including the fill-rule intersection mode and boolean clipping operations.

public class ShapeOptions : IDeepCloneable<ShapeOptions>
Inheritance
ShapeOptions
Implements
Inherited Members

Constructors

ShapeOptions()

Initializes a new instance of the ShapeOptions class.

public ShapeOptions()

Properties

BooleanOperation

Gets or sets the boolean clipping operation used when a clipping path is applied. Determines how the clip shape interacts with the target region (e.g. Difference subtracts the clip shape).

Defaults to Difference.

public BooleanOperation BooleanOperation { get; set; }

Property Value

BooleanOperation

IntersectionRule

Gets or sets the fill rule that determines how overlapping or nested contours affect coverage. NonZero fills any region with a non-zero winding number; EvenOdd alternates fill/hole for each contour crossing.

Defaults to NonZero.

public IntersectionRule IntersectionRule { get; set; }

Property Value

IntersectionRule

Methods

DeepClone()

Creates a new ShapeOptions that is a deep copy of the current instance.

public ShapeOptions DeepClone()

Returns

ShapeOptions

The ShapeOptions.