Export (0) Print
Expand All

svgPreserveAspectMeetOrSliceType enumeration

Defines the meet-or-slice types for the SVGPreserveAspectRatio property.

Syntax


typedef enum _svgPreserveAspectMeetOrSliceType { 
  SVG_MEETORSLICE_UNKNOWN               = 0,
  SVG_MEETORSLICE_MEET                  = 1,
  SVG_MEETORSLICE_SLICE                 = 2,
  svgPreserveAspectMeetOrSliceType_Max  = 2147483647L
} svgPreserveAspectMeetOrSliceType;

Constants

SVG_MEETORSLICE_UNKNOWN

The value is not one of the predefined types.

Note  Do not try to define a new value of this type. Do not switch an existing value to this type.
SVG_MEETORSLICE_MEET

(Default) Graphics are scaled in the following way:

  • The aspect ratio is preserved.
  • The entire viewBox is visible in the viewport.
  • The viewport is scaled up as much as possible, while still meeting the other criteria.

If the aspect ratio of the graphic does not match the viewport, some of the viewport extends beyond the bounds of the viewBox (where the area that the viewBox draws in is smaller than the viewport).

SVG_MEETORSLICE_SLICE

Graphics are scaled in the following way:

  • the aspect ratio is preserved.
  • The entire viewBox is visible in the viewport.
  • The viewport is scaled down as much as possible, while still meeting the other criteria.

If the aspect ratio of the viewBox does not match the viewport, some of the viewBox extends beyond the bounds of the viewport (where the area that the viewBox draw in is larger than the viewport).

svgPreserveAspectMeetOrSliceType_Max

Reserved.

Requirements

Minimum supported client

Windows Vista with SP1, Windows 7

Minimum supported server

Windows Server 2008 R2

Header

Mshtml.h

IDL

Mshtml.idl

 

 

Show:
© 2015 Microsoft