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
WebRotateFlipType
Enumeration- 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_NONE
ROTATE_NONE_FLIP_X
,ROTATE_90_FLIP_X
,ROTATE_180_FLIP_X
,ROTATE_270_FLIP_X
ROTATE_NONE_FLIP_Y
,ROTATE_90_FLIP_Y
,ROTATE_180_FLIP_Y
,ROTATE_270_FLIP_Y
ROTATE_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
IBitmap
APIrotate_flip
now uses the newWebRotateFlipType
(instead ofaspose.pydrawing.RotateFlipType
).- Enhances cross-platform support and unifies image transformation options.
Refined Font Interface
ITrueTypeFont.style
property has been removed.- Other font properties (e.g.,
family_name
,sub_family_name
,full_font_name
) remain available to specify font details.
New
WebFontStyle
Enumeration- Adds more descriptive text styling options:
REGULAR
,BOLD
, andITALIC
.
- Used by
GraphicContext.font_style
andICanvasContext.font_style
to manage text rendering.
- Adds more descriptive text styling options:
Renamed Rendering Properties
use_antialiasing
replacessmoothing_mode
inImageRenderingOptions
andImageSaveOptions
.- Boolean property to toggle antialiasing; enabled by default.
use_hinting
replacestext_rendering_hint
inTextOptions
.- Boolean property for enabling/disabling text hinting; disabled by default.
Updated Public API
rotate_flip
inIBitmap
- 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
WebFontStyle
or other existing font properties.
- This property is no longer present; users should use
use_antialiasing
anduse_hinting
use_antialiasing
: Found inImageRenderingOptions
andImageSaveOptions
.use_hinting
: Located inTextOptions
.
Font Style in
GraphicContext
andICanvasContext
- 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.