AspectRatioAlign Enum
AspectRatioAlign enumeration
Specifies alignment types for the ‘preserveAspectRatio’ attribute in SVG.
public enum AspectRatioAlign
Values
Name | Value | Description |
---|---|---|
None | 0 | Indicates that no uniform scaling is applied; the aspect ratio is not preserved. |
XMinYMin | 1 | Aligns the minimum X and minimum Y of the viewBox with the smallest X and Y values of the viewport. |
XMidYMin | 2 | Aligns the midpoint X and minimum Y of the viewBox with the midpoint X and smallest Y value of the viewport. |
XMaxYMin | 3 | Aligns the maximum X and minimum Y of the viewBox with the largest X and smallest Y value of the viewport. |
XMinYMid | 4 | Aligns the minimum X and midpoint Y of the viewBox with the smallest X and midpoint Y value of the viewport. |
XMidYMid | 5 | Aligns the midpoint X and Y of the viewBox with the midpoint X and Y of the viewport. |
XMaxYMid | 6 | Aligns the maximum X and midpoint Y of the viewBox with the largest X and midpoint Y value of the viewport. |
XMinYMax | 7 | Aligns the minimum X and maximum Y of the viewBox with the smallest X and largest Y value of the viewport. |
XMidYMax | 8 | Aligns the midpoint X and maximum Y of the viewBox with the midpoint X and largest Y value of the viewport. |
XMaxYMax | 9 | Aligns the maximum X and maximum Y of the viewBox with the largest X and Y values of the viewport. |
See Also
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG