ImageAspect Attribute

Internet Development Index

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>