SVG to Image Converter (Plugin for .NET) provides fast and accurate conversion of SVG files, including dynamic markup and standalone documents, to popular image formats such as PNG, JPG, BMP, GIF, TIFF, and WebP. With support for full-page rendering, custom viewports, and flexible output resizing, developers can create high-quality raster image documents with just a few lines of code. This lightweight and powerful plugin simplifies SVG to image conversion and integrates efficiently into .NET applications, making it an ideal solution for scalable graphics processing.
Converter.ConvertSVG
method, providing:ImageSaveOptions
object configured with desired parameters (format, resolution, sizing, etc.).Acquire the necessary assembly files directly from the downloads page or use NuGet to install Aspose.SVG effortlessly into your workspace.
ImageSaveOptions.PageSetup.Sizing
settings (e.g., FitContent
, Letterbox
) to preserve aspect ratios and prevent clipping during rendering.width
and height
attributes on the root <svg>
element. This ensures consistent output sizes and prevents reliance on default or viewport-based sizing behavior.ImageSaveOptions
.PageSetup.Sizing
to FitContent
or enlarge the PageSetup.AnyPage
dimensions.It is a specialized component that allows developers to programmatically convert SVG graphics to raster images directly inside any .NET application.
Aspose.SVG for .NET library provides a broad API for parsing, editing, and rendering SVG content. The SVG to Image Converter focuses specifically on high-fidelity rasterization, streamlining image-generation workflows.
.NET Plugin – SVG to Image Converter supports various output image formats, including PNG, JPG, GIF, BMP, WEBP, and TIFF, allowing developers to create high-quality images suitable for web, print, and application use.
Yes. You can fine-tune output quality by setting properties such as ImageSaveOptions.HorizontalResolution
and ImageSaveOptions.VerticalResolution
to specify the desired DPI (dots per inch) for the rendered image. To manage transparency, use the ImageSaveOptions.BackgroundColor
property. By default, SVGs with transparent backgrounds will retain transparency if the target format supports it (e.g., PNG).
Absolutely! Aspose.SVG offers a free, easy-to-use online SVG Converter that covers a wide range of formats. It does not require installation or setup, making it a convenient solution for quick conversions on the go.