aspose.svg.imagevectorization

The Aspose.Svg.ImageVectorization namespace contains classes for vectorizing raster images and converting them to SVG documents. This process involves reducing bitmaps to geometric shapes made up from path elements and storing them as SVG. The namespace includes classes for building path segments, simplifying and smoothing trace points, and configuring vectorization options.

Classes

ClassDescription
BezierPathBuilderThe BezierPathBuilder class is responsible for constructing a Bezier path from a given set of points.
It approximates a trace of points with a Bezier curve, optimizing the number of segments to closely
match the original trace while minimizing complexity.
IImageTraceSimplifierThe IImageTraceSimplifier interface is responsible for reduction of points in the trace.
IImageTraceSmootherThe IImageTraceSmoother interface is responsible for smoothing trace.
IPathBuilderThe IPathBuilder interface is responsible for building path segments SVGPathSeg from list of the trace points.
ImageTraceSimplifierThe ImageTraceSimplifier class is responsible reducing the number of points in a curve that is approximated by a series of the trace points.
ImageTraceSmootherThe 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.
ImageVectorizerThis ImageVectorizer class vectorizes raster images like PNG, JPG, GIF, BMP and etc… and returns SVGDocument.
Under vectorization we mean the process of reducing bitmaps to geometric shapes made up from path elements and stored as SVG.
ImageVectorizerConfigurationThe ImageVectorizerConfiguration class defines a configuration of image vectorization methods and options.
The configuration is used to initialize an ImageVectorizer and provides the configuration options for
vectorizing images.
SplinePathBuilderThe SplinePathBuilder class is designed to construct a smooth path by transforming Centripetal Catmull–Rom splines into Bezier curves.
It offers a method to generate a path that smoothly interpolates through a set of points, providing a balance between fidelity to the points and smoothness of the curve.
StencilConfigurationThe StencilConfiguration class defines a configuration of stencil effect options.

Enumerations

EnumerationDescription
StencilTypeThe StencilType enum defines stencil types.