Class SVGOptimizer
Namespace: Aspose.Html.Toolkit.Optimizers
Assembly: Aspose.HTML.dll (25.2.0)
SVGOptimizer is a static class designed to optimize SVG documents. By optimization, we mean removing unused or invisible elements and their attributes, merging groups, and reducing the size of path segments.
[ComVisible(true)]
public static class SVGOptimizer
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Methods
Optimize(SVGDocument)
Optimizes Aspose.Html.Dom.Svg.SVGDocument by applying a set of default optimization options.
public static void Optimize(SVGDocument document)
Parameters
document
SVGDocument
The instance of SVGDocument.
Optimize(SVGDocument, SVGOptimizationOptions)
Optimizes Aspose.Html.Dom.Svg.SVGDocument by applying a set of specified optimization options.
public static void Optimize(SVGDocument document, SVGOptimizationOptions options)
Parameters
document
SVGDocument
The instance of SVGDocument.
options
SVGOptimizationOptions
The instance of SVGOptimizationOptions.