SvgImage.Resize
Contents
[
Hide
]Resize(int, int, ResizeType)
Resize the image to fit the specified dimensions while preserving its aspect ratio. This method provides a convenient way to adjust the size of the image without distorting its proportions, ensuring optimal display or storage according to the desired dimensions.
public override void Resize(int newWidth, int newHeight, ResizeType resizeType)
Parameter | Type | Description |
---|---|---|
newWidth | Int32 | The new width. |
newHeight | Int32 | The new height. |
resizeType | ResizeType | The resize type. |
See Also
- enum ResizeType
- class SvgImage
- namespace Aspose.Imaging.FileFormats.Svg
- assembly Aspose.Imaging
Resize(int, int, ImageResizeSettings)
Adjusts the image size according to the specified settings, enabling customization of the resizing process to meet specific requirements. This method offers flexibility in resizing operations, allowing for precise control over aspects such as interpolation methods, aspect ratio preservation, and output quality.
public override void Resize(int newWidth, int newHeight, ImageResizeSettings settings)
Parameter | Type | Description |
---|---|---|
newWidth | Int32 | The new width. |
newHeight | Int32 | The new height. |
settings | ImageResizeSettings | The resize settings. |
See Also
- class ImageResizeSettings
- class SvgImage
- namespace Aspose.Imaging.FileFormats.Svg
- assembly Aspose.Imaging