Class ImageTraceSimplifier

Class ImageTraceSimplifier

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

The ImageTraceSimplifier class is responsible reducing the number of points in a curve that is approximated by a series of the trace points.

[ComVisible(true)]
public class ImageTraceSimplifier : IImageTraceSimplifier

Inheritance

object ImageTraceSimplifier

Implements

IImageTraceSimplifier

Inherited Members

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

Constructors

ImageTraceSimplifier()

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

public ImageTraceSimplifier()

ImageTraceSimplifier(float)

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

public ImageTraceSimplifier(float tolerance)

Parameters

tolerance float

The toleranace

Properties

Tolerance

The value of the tolerance determines the maximum error tolerance allowed for an point to be eliminated from trace. It must be in the range from 0 to 4. Any higher or lower values will be aligned with the minimum and maximum values of this range, accordingly. The default value is 0.3.

public float Tolerance { get; set; }

Property Value

float

Methods

Simplify(IEnumerable<pointf>)

Reduces the number of points it the list of the trace points.

public IEnumerable<pointf> Simplify(IEnumerable<pointf> trace)

Parameters

trace IEnumerable < PointF &gt;

The list of the trace points.

Returns

IEnumerable < PointF &gt;

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

 English