Class ImageVectorizer

Class ImageVectorizer

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

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

[ComVisible(true)]
public class ImageVectorizer

Inheritance

object ImageVectorizer

Inherited Members

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

Constructors

ImageVectorizer()

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

public ImageVectorizer()

ImageVectorizer(ImageVectorizerConfiguration)

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

public ImageVectorizer(ImageVectorizerConfiguration configuration)

Parameters

configuration ImageVectorizerConfiguration

The configuration.

Properties

Configuration

The configuration of image vectorization methods and options

public ImageVectorizerConfiguration Configuration { get; set; }

Property Value

ImageVectorizerConfiguration

Methods

Vectorize(string)

Vectorizes raster image from the specified file.

public SVGDocument Vectorize(string imageFile)

Parameters

imageFile string

The path to the image file.

Returns

SVGDocument

The SVG document.

Vectorize(Stream)

Vectorizes raster image from the specified stream.

public SVGDocument Vectorize(Stream imageStream)

Parameters

imageStream Stream

The stream with image.

Returns

SVGDocument

The SVG document.

 English