Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.SVG for .NET works with file formats in more than one way. An SVG or SVGZ file can be loaded as a document and edited through the API. The same document can be rendered to a fixed-layout document or raster image. Raster artwork can also be used as input for vectorization, producing a new SVG document.
The table below distinguishes these workflows so that “supported” does not imply the same operation for every format.
| Format | Use as source content | Produce as output | Typical operation |
|---|---|---|---|
| SVG | Load, create, edit, or render | Save an SVG document | Work with editable vector graphics |
| SVGZ | Load compressed SVG content | Save compressed SVG output | Store or exchange GZIP-compressed SVG |
| – | Render SVG to PDF | Create portable document output | |
| XPS | – | Render SVG to XPS | Create fixed-layout document output |
| PNG | Vectorize raster input | Render SVG to PNG | Produce transparent or lossless raster output |
| JPEG/JPG | Vectorize raster input | Render SVG to JPEG | Produce compact photographic-style output |
| BMP | Vectorize raster input | Render SVG to BMP | Produce bitmap output |
| TIFF | Vectorize raster input | Render SVG to TIFF | Produce image output for publishing or archiving workflows |
| GIF | Vectorize raster input | Render SVG to GIF | Produce palette-based raster output |
| WebP | – | Render SVG to WebP | Produce web-oriented raster output |
| ICO | Vectorize raster input | – | Trace icon artwork into SVG paths |
SVG is the native document format of the API. Applications can create SVG content, load an existing document, modify its DOM, and save the updated SVG file. SVGZ contains the same SVG markup in compressed form; it is useful when an SVG document needs a smaller stored or transferred representation.
For document-level operations, start with Create, Load and Read SVG Files in C# and Save an SVG Document in C#. Dedicated guides show how to convert SVG to SVGZ and convert SVGZ to SVG.
Rendering takes an SVG document and creates output intended for distribution, display, printing, or further processing. Aspose.SVG for .NET renders SVG to PDF and XPS, as well as raster images in PNG, JPEG, BMP, TIFF, GIF, and WebP formats. WebP output is represented by the
ImageFormat.Webp value in the image rendering API.
See Convert SVG Files in C# for the conversion workflow and Convert SVG to Images in C# for image rendering settings. Output appearance may depend on fonts, effects, resources, and image options; SVG Rendering Quality and Output Consistency explains what to evaluate before deployment.
Image vectorization is a different operation from rendering. It accepts raster input and traces visible content into SVG paths. Aspose.SVG for .NET supports vectorization workflows for PNG, JPEG/JPG, BMP, TIFF, GIF, and ICO images. The resulting SVG is most useful for logos, icons, diagrams, and artwork with clean shapes and a manageable number of colors.
Use Image and Text Vectorization for an overview, or begin with the focused Convert PNG to SVG in C# guide.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.