AspectRatioScaling enumeration

AspectRatioScaling enumeration

Specifies the scaling behavior for SVG elements when preserving their aspect ratio.

The AspectRatioScaling type exposes the following members:

Fields

FieldDescription
MEETScales 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.
SLICEScales 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