VML ImageAspect Attribute

This topic describes VML, a feature that is deprecated as of Windows Internet Explorer 9. Webpages and applications that rely on VML should be migrated to SVG or other widely supported standards.

Note

As of December 2011, this topic has been archived. As a result, it is no longer actively maintained. For more information, see Archived Content. For information, recommendations, and guidance regarding the current version of Windows Internet Explorer, see Internet Explorer Developer Center.

 

Defines how the stroke image aspect ratio will be preserved. Read/write. String.

Applies To

Stroke

Tag Syntax

<v:

element imageaspect=" expression ">

Script Syntax

element .imageaspect="expression"

expression*=element.imageaspect*

Remarks

Values include:

Value Description
Ignore Ignore aspect issues.
AtLeast Image is at least as big as ImageSize.
AtMost Image is no bigger than ImageSize.

 

In each case, the ImageSize attribute will be adjusted to preserve the aspect of the image.

VML Standard Attribute

Example

The stroke image will be at least as big as the image size.

   <v:shape id="rect01"
   strokecolor="red" fillcolor="red"
   style="top:20;left:20;width:30;height:30"
   path="m 1,1 l 1,200, 200,200, 200,1 x e">
   <v:stroke imageaspect="AtLeast"/>
   </v:shape>