Fit options

From A-SMIL.org
Revision as of 13:56, 20 November 2009 by SMIL T.A. (talk | contribs) (Created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

SMIL supports several options to "fit" content inside a region.

<region ... fit="fill" />

or

<img ... fit="meetBest" />

Allowed Values

hidden (default)
Display content without scaling
fill
Shrink or stretch the content to completely fill the area (without preserving aspect ratio)
meet
Scale the content while preserving aspect ratio until one of the dimensions meets the that of the area
meetBest
Scale the content while preserving aspect ratio until one of the dimensions meets the that of the area, but never stretch it larger than the original

Related