Нow to work with Aspose.SVG API

[ ]

SVG files use an XML-based text format to describe how the image should appear. SVG is a resolution-independent format, and SVG files can be scaled to different sizes without losing quality. The SVG format has all the advantages of vector graphics and many other advantages over bitmap formats. SVG is available in all modern web browsers, and as we look forward, it is easy to see that SVG files are the future of web design graphics.

The articles in this chapter provide the required information to start working with Aspose.SVG class library. We look at how to use API for SVG files creating, editing and saving. Along with the powerful DOM API, one of the key features of Aspose.SVG is quality rendering and converting to many popular formats, such as PDF, XPS, JPEG, PNG, BMP, TIFF, and GIF. Moreover, this library offers additional saving and rendering options, SVG documents merging, Image vectorization, SVG text vectorization, applying scripts, SVG filter effects, and more.

The following articles are available:

  • Creating and Loading SVG Documents - You find out how to create SVG from a memory string, stream, or file; how to load SVG from the Web, and read SVG with Resources Async.
  • Saving SVG Documents - You will learn how to save an SVG document to a file, ZIP archive, memory stream, or Url using Aspose.SVG for .NET library.
  • How to Edit SVG documents - You learn how to edit SVG using Aspose.SVG for .NET library. Detailed examples of adding and editing new elements in SVG and applying SVG filters to bitmaps are considered.
  • How to Change SVG Color - You will explore how to change the color of SVG elements and background in SVG images using Aspose.SVG .Net library.
  • Environment Configuration - You will learn how to create various configurations and adapt them to the different environments where the application runs. This can be a custom theme, a runtime service or a web request network service.
  • Navigation & Inspection SVG - This article teaches how to perform a detailed inspection of the SVG document and its elements using the Aspose.SVG API, custom filters usage for iterating over the document elements, and how to navigate the SVG document using CSS Selector or XPath.
  • How to Convert SVG Files - The articles in this section provide information on a list of supported SVG conversion scenarios and how to execute them using the Aspose.SVG API. You will learn how to convert SVG to PDF, XPS or Image and find C# examples of SVG conversion.
  • How to Merge SVG Documents - You will learn about the Render() method used to convert SVG documents to another format and merge them into a single file.
  • Vectorization - The articles in this section explain how to convert SVG text to vector and how to convert raster image to vector graphic using the Aspose.SVG API.