Export (0) Print
Expand All

preserveAspectRatio property

Gets an XML value that indicates whether to force uniform graphic scaling.

Scalable Vector Graphics: Basic Data Types and Interfaces, Section 4.5.28Internet Explorer 9

Syntax

HRESULT value = object.get_preserveAspectRatio(ISVGAnimatedPreserveAspectRatio** p);

Property values

Type: Object

A value that determines how viewports are scaled, using the following parameters:

Standards information

Remarks

For elements that establish a new viewport, the ISVGFitToViewBox::preserveAspectRatio property applies only when you provide a value for the ISVGFitToViewBox::viewBox attribute on the same element. If you do not specify the ISVGFitToViewBox::viewBox attribute, the ISVGFitToViewBox::preserveAspectRatio attribute is ignored.

For image elements, ISVGFitToViewBox::preserveAspectRatio specifies how images are fitted relative to the reference rectangle. ISVGFitToViewBox::preserveAspectRatio also determines whether the aspect ratio of the image is preserved with respect to the user coordinate system.

 

 

Community Additions

ADD
Show:
© 2014 Microsoft