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 SplinePathBuilder class is responsible for building path segments SVGPathSeg from list of the trace points. This path builder is based on using least-squares method to find Bezier control points for trace of 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 responsible for building path segments SVGPathSeg from list of the trace points. This path builder is based on applying a Catmull-Roma spline to a set of smoothed and reduced path points..
StencilConfigurationThe StencilConfiguration class defines a configuration of stencil effect options.

Interfaces

InterfaceDescription
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.

Enumeration

EnumerationDescription
StencilTypeThe StencilType enum defines stencil types.