Browse our Products
Aspose.SVG for Python via .NET 25.2 Release Notes
Major Features
We are pleased to announce the February release of Aspose.SVG for Python via .NET 25.2.0. This version reflects recent enhancements from Aspose.SVG for .NET, emphasizing improved image manipulation, text styling, and rendering quality in Python-based applications. Key highlights include new enumerations for rotation/flip operations and text styling, revised rendering properties (use_antialiasing, use_hinting), and a more streamlined font interface.
Below is a summary of the most significant updates:
Enhancements and Fixes
New
WebRotateFlipTypeEnumeration- Introduces image rotation and flipping capabilities without relying on
System.Drawing. - Enum Members:
ROTATE_NONE_FLIP_NONE,ROTATE_90_FLIP_NONE,ROTATE_180_FLIP_NONE,ROTATE_270_FLIP_NONEROTATE_NONE_FLIP_X,ROTATE_90_FLIP_X,ROTATE_180_FLIP_X,ROTATE_270_FLIP_XROTATE_NONE_FLIP_Y,ROTATE_90_FLIP_Y,ROTATE_180_FLIP_Y,ROTATE_270_FLIP_YROTATE_NONE_FLIP_XY,ROTATE_90_FLIP_XY,ROTATE_180_FLIP_XY,ROTATE_270_FLIP_XY
- Introduces image rotation and flipping capabilities without relying on
Updated
IBitmapAPIrotate_flipnow uses the newWebRotateFlipType(instead ofaspose.pydrawing.RotateFlipType).- Enhances cross-platform support and unifies image transformation options.
Refined Font Interface
ITrueTypeFont.styleproperty has been removed.- Other font properties (e.g.,
family_name,sub_family_name,full_font_name) remain available to specify font details.
New
WebFontStyleEnumeration- Adds more descriptive text styling options:
REGULAR,BOLD, andITALIC.
- Used by
GraphicContext.font_styleandICanvasContext.font_styleto manage text rendering.
- Adds more descriptive text styling options:
Renamed Rendering Properties
use_antialiasingreplacessmoothing_modeinImageRenderingOptionsandImageSaveOptions.- Boolean property to toggle antialiasing; enabled by default.
use_hintingreplacestext_rendering_hintinTextOptions.- Boolean property for enabling/disabling text hinting; disabled by default.
Updated Public API
rotate_flipinIBitmap- Old:
rotate_flip(aspose.pydrawing.RotateFlipType) - New:
rotate_flip(aspose.svg.drawing.WebRotateFlipType)
- Old:
Removed
ITrueTypeFont.style- This property is no longer present; users should use
WebFontStyleor other existing font properties.
- This property is no longer present; users should use
use_antialiasinganduse_hintinguse_antialiasing: Found inImageRenderingOptionsandImageSaveOptions.use_hinting: Located inTextOptions.
Font Style in
GraphicContextandICanvasContext- Both reference
WebFontStyle(Regular, Bold, Italic) for more intuitive text styling.
- Both reference
For a detailed overview of all changes and code examples, please refer to the Aspose.SVG for Python via .NET API Reference.
We encourage you to download Aspose.SVG for Python via .NET 25.2.0 and share your feedback on the Aspose forums. Your input is invaluable in helping us refine and enhance the product for your development needs.