AspectRatioScaling Enum

AspectRatioScaling enumeration

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

public enum AspectRatioScaling

Values

NameValueDescription
Meet0Scales 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.
Slice1Scales 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