Browse our Products
Aspose.SVG for .NET 25.2 Release Notes
Major Features
We are pleased to announce the February release of Aspose.SVG for .NET 25.2.0. In this version, we have focused on improving the quality of SVG rendering and reducing the dependency on System.Drawing.Common. Notable changes include the introduction of a new IBitmap interface for image manipulation, a WebRotateFlipType enumeration for flexible image transformations, and enhanced documentation for rendering properties like UseAntialiasing and UseHinting. These updates empower developers to create, manipulate, and render SVG content more efficiently and with greater control.
Enhancements and Fixes
New
IBitmapInterface- A dedicated interface for handling bitmap images without relying on
System.Drawing.Common. - Methods for drawing, saving, and transforming images, as well as setting transparency.
- A dedicated interface for handling bitmap images without relying on
Support for Image Rotation and Flipping
- The new
WebRotateFlipTypeenumeration enables rotating and flipping images in various combinations, replacing ad-hoc approaches and providing a unified API for transformations.
- The new
Improved Rendering Options
UseAntialiasing(inImageRenderingOptions) now clearly specifies whether antialiasing is enabled.UseHinting(inTextOptions) clarifies the role of font hinting in text rendering.
Refined Font Style Enumeration
- Updated the documentation of
WebFontStyleto provide more descriptive entries forRegular,Bold, andItalic.
- Updated the documentation of
Public API Changes
Added
Aspose.Svg.Drawing.IBitmapInterface- Properties
ColorSpace,ColorTable,Format,Width,Height,HorizontalResolution,VerticalResolution
- Methods
ApplyOpacity(float opacity),DrawBitmap(...),FillRectangle(...),GetPixelsMap(...),RotateFlip(WebRotateFlipType),Save(Stream, WebImageFormat, int),SetTransparent(Color)
- Properties
WebRotateFlipTypeEnumeration- Provides various combinations of rotation (none, 90, 180, 270) and flipping (horizontal, vertical, both).
Extended
IDrawingFactoryMethodsCreateBitmapFromImageByteArray(byte[] imageBytes)CreateBitmapFromImageStream(Stream imageStream)CreateBitmapFromPixelByteArray(byte[] byteArray, int width, int height, ColorSpace colorSpace)- All now return an
IBitmapinstance for simplified image creation.
Modified
WebFontStyleEnumeration- Updated descriptions for
Regular,Bold, andItalicto clarify usage.
- Updated descriptions for
ImageRenderingOptions.UseAntialiasing- Explicitly documents whether to apply antialiasing during image rendering.
TextOptions.UseHinting- Explicitly documents whether to use font hinting when rendering text.
Impact on Existing Code
- Avoiding
System.Drawing.Common- The new
IBitmapinterface and associated factories help transition away fromSystem.Drawing.Common, improving cross-platform consistency and long-term support.
- The new
- Improved Render Quality
UseAntialiasingandUseHintingprovide clearer control over how images and text are rendered, offering higher quality output.
We encourage you to:
- Download Aspose.SVG for .NET 25.2.0
- Install via NuGet (Aspose.SVG)
- Install via NuGet (Aspose.SVG.Drawing.SkiaSharp)
and share your feedback in the Aspose forums. Your input helps us enhance the product to serve you better.