Class ImageTraceSmoother

Class ImageTraceSmoother

Namespace: Aspose.Svg.ImageVectorization
Assembly: Aspose.SVG.dll (25.5.0)

The ImageTraceSimplifier class is responsible for smoothing the number of points in a curve that is approximated by a series of the trace points. This class implement nearest-neighbor approach.

[ComVisible(true)]
public class ImageTraceSmoother : IImageTraceSmoother

Inheritance

object ImageTraceSmoother

Implements

IImageTraceSmoother

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

ImageTraceSmoother()

Initializes a new instance of the Aspose.Svg.ImageVectorization.ImageTraceSmoother class.

public ImageTraceSmoother()

ImageTraceSmoother(int)

Initializes a new instance of the Aspose.Svg.ImageVectorization.ImageTraceSmoother class.

public ImageTraceSmoother(int severity)

Parameters

severity int

The severity

Properties

Extent

Gets of sets extent of the region considered by query point. It must be in the range from 1 to 20. Any higher or lower values will be aligned with the minimum and maximum values of this range, accordingly.

public int Extent { get; set; }

Property Value

int

Methods

Smooth(IEnumerable<pointf>)

Smoothes the trace.

public virtual IEnumerable<pointf> Smooth(IEnumerable<pointf> trace)

Parameters

trace IEnumerable < PointF &gt;

The list of the trace points.

Returns

IEnumerable < PointF &gt;

The list of the smoothed trace points. </pointf>

 English