Back to top OpenSVG (c) Veridict AB, www.veridict.com
Edit this page

Enum AspectRatioMeetOrSlice

Specifies the 'meet or slice' part of the 'preserveAspectRatio' attribute in SVG. Determines how the SVG content is scaled within its viewport.

Namespace: OpenSvg.Attributes
Assembly: OpenSvg.dll
Syntax
public enum AspectRatioMeetOrSlice

Fields

Name Description
Meet

Scale the graphic content to ensure that the entire viewBox is visible within the viewport. The entire viewBox is contained within the viewport, maintaining the aspect ratio.

Slice

Scale the graphic content to cover the entire viewport, maintaining the aspect ratio. Parts of the viewBox might be sliced off to ensure that the viewport is fully covered.