Pacote | org.osmf.display |
Classe | public final class ScaleMode |
Herança | ScaleMode Object |
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | OSMF for Flex 4.0 |
Versões de runtime: | Flash Player 10, AIR 1.5 |
The ScaleMode class controls the layout of out a single piece of content within a container.
There are four enumeration values, NONE
, STRETCH
, LETTERBOX
,
and ZOOM
.
Elementos da API relacionados
Constante | Definido por | ||
---|---|---|---|
LETTERBOX : String = "letterbox" [estático]
LETTERBOX sets the width and height of the content as close to the container width and height
as possible while maintaining aspect ratio. | ScaleMode | ||
NONE : String = "none" [estático]
NONE implies that the media size is set to match its intrinsic size. | ScaleMode | ||
STRETCH : String = "stretch" [estático]
STRETCH sets the width and the height of the content to the
container width and height, possibly changing the content aspect ratio. | ScaleMode | ||
ZOOM : String = "zoom" [estático]
ZOOM is similar to LETTERBOX, except that ZOOM stretches the
content past the bounds of the container, to remove the spacing required to maintain aspect ratio. | ScaleMode |
LETTERBOX | Constante |
public static const LETTERBOX:String = "letterbox"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | OSMF for Flex 4.0 |
Versões de runtime: | Flash Player 10, AIR 1.5 |
LETTERBOX
sets the width and height of the content as close to the container width and height
as possible while maintaining aspect ratio. The content is stretched to a maximum of the container bounds,
with spacing added inside the container to maintain the aspect ratio if necessary.
NONE | Constante |
public static const NONE:String = "none"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | OSMF for Flex 4.0 |
Versões de runtime: | Flash Player 10, AIR 1.5 |
NONE
implies that the media size is set to match its intrinsic size.
STRETCH | Constante |
public static const STRETCH:String = "stretch"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | OSMF for Flex 4.0 |
Versões de runtime: | Flash Player 10, AIR 1.5 |
STRETCH
sets the width and the height of the content to the
container width and height, possibly changing the content aspect ratio.
ZOOM | Constante |
public static const ZOOM:String = "zoom"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | OSMF for Flex 4.0 |
Versões de runtime: | Flash Player 10, AIR 1.5 |
ZOOM
is similar to LETTERBOX
, except that ZOOM
stretches the
content past the bounds of the container, to remove the spacing required to maintain aspect ratio.
This has the effect of using the entire bounds of the container, but also possibly cropping some content.
Wed Jun 13 2018, 11:10 AM Z