Enum AspectRatioAlign
Specifies the alignment part of the 'preserveAspectRatio' attribute in SVG. Determines how the SVG content is aligned within its viewport.
Namespace: OpenSvg.Attributes
Assembly: OpenSvg.dll
Syntax
public enum AspectRatioAlign
Fields
Name | Description |
---|---|
None | Do not force uniform scaling. Scales the SVG content to fill the viewport. |
XMaxYMax | Align the maximum X value of the viewBox with the largest X value of the viewport; Align the maximum Y value of the viewBox with the largest Y value of the viewport. |
XMaxYMid | Align the maximum X value of the viewBox with the largest X value of the viewport; Align the midpoint Y value of the viewBox with the midpoint Y value of the viewport. |
XMaxYMin | Align the maximum X value of the viewBox with the largest X value of the viewport; Align the minimum Y value of the viewBox with the smallest Y value of the viewport. |
XMidYMax | Align the midpoint X value of the viewBox with the midpoint X value of the viewport; Align the maximum Y value of the viewBox with the largest Y value of the viewport. |
XMidYMid | Align the midpoint X value of the viewBox with the midpoint X value of the viewport; Align the midpoint Y value of the viewBox with the midpoint Y value of the viewport. |
XMidYMin | Align the midpoint X value of the viewBox with the midpoint X value of the viewport; Align the minimum Y value of the viewBox with the smallest Y value of the viewport. |
XMinYMax | Align the minimum X value of the viewBox with the smallest X value of the viewport; Align the maximum Y value of the viewBox with the largest Y value of the viewport. |
XMinYMid | Align the minimum X value of the viewBox with the smallest X value of the viewport; Align the midpoint Y value of the viewBox with the midpoint Y value of the viewport. |
XMinYMin | Align the minimum X and Y values of the viewBox with the smallest X and Y values of the viewport. |