AspectRatioScaling Enum
AspectRatioScaling enumeration
Specifies the scaling behavior for SVG elements when preserving their aspect ratio.
public enum AspectRatioScaling
Values
Name | Value | Description |
---|---|---|
Meet | 0 | Scales the SVG element to fit within the viewport while preserving its aspect ratio. If the aspect ratio of the viewport does not match the element, extra space will be distributed evenly along the axis that has more space. |
Slice | 1 | Scales the SVG element to fill the viewport while preserving its aspect ratio. If the aspect ratio of the viewport does not match the element, the element will be clipped to fit. |
See Also
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG