| 패키지 | fl.video |
| 클래스 | public final class VideoScaleMode |
| 상속 | VideoScaleMode Object |
| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flash CS3 |
| 런타임 버전: | Flash Player 9.0.28.0, AIR 1.0 |
FLVPlayback.scaleMode 및 VideoPlayer.scaleMode 속성에 사용할 상수 값을 제공합니다.
관련 API 요소
| 상수 | 정의 주체 | ||
|---|---|---|---|
| EXACT_FIT : String = "exactFit" [정적]
registrationHeight 또는 height 및 registrationWidth 또는 width 속성에서 지정된 높이와 폭으로 비디오를 표시하도록 지정합니다. | VideoScaleMode | ||
| MAINTAIN_ASPECT_RATIO : String = "maintainAspectRatio" [정적]
registrationX, registrationY, registrationWidth 및 registrationHeight 속성에 따라 결정된 사각형 안에 비디오가 제한되지만 원래 종횡비는 유지되도록 지정합니다. | VideoScaleMode | ||
| NO_SCALE : String = "noScale" [정적]
비디오를 표시할 때 소스 비디오의 높이와 폭이 정확히 표시되도록 지정합니다. | VideoScaleMode | ||
EXACT_FIT | 상수 |
public static const EXACT_FIT:String = "exactFit"| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flash CS3 |
| 런타임 버전: | Flash Player 9.0.28.0, AIR 1.0 |
registrationHeight 또는 height 및 registrationWidth 또는 width 속성에서 지정된 높이와 폭으로 비디오를 표시하도록 지정합니다.
예를 들어 registrationWidth = width = 100, registrationHeight = height = 100이고 registrationX = 200, registrationY = 200이며 FLV 파일이 width 648, height 480(약 4:3의 종횡비)으로 로드된 경우 align = VideoAlign.CENTER이고 scaleMode = EXACT_FIT이면 width = 100, height = 100, x = 200 및 y = 200의 결과를 얻게 됩니다.
MAINTAIN_ASPECT_RATIO | 상수 |
public static const MAINTAIN_ASPECT_RATIO:String = "maintainAspectRatio"| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flash CS3 |
| 런타임 버전: | Flash Player 9.0.28.0, AIR 1.0 |
registrationX, registrationY, registrationWidth 및 registrationHeight 속성에 따라 결정된 사각형 안에 비디오가 제한되지만 원래 종횡비는 유지되도록 지정합니다.
예를 들어 registrationWidth = 100, registrationHeight = 100이고 registrationX = 200, registrationY = 200이며 FLV 파일이 width 648, height 480(약 4:3의 종횡비)으로 로드된 경우 align = VideoAlign.CENTER이고 scaleMode = MAINTAIN_ASPECT_RATIO이면 width = 100, height = (100 * 480 / 648) = 74, x = 10 및 y = (10 + ((100 - 74) / 2)) = 23의 결과를 얻게 됩니다.
NO_SCALE | 상수 |
public static const NO_SCALE:String = "noScale"| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flash CS3 |
| 런타임 버전: | Flash Player 9.0.28.0, AIR 1.0 |
비디오를 표시할 때 소스 비디오의 높이와 폭이 정확히 표시되도록 지정합니다.
예를 들어 registrationWidth = 100, registrationHeight = 100이고 registrationX = 200, registrationY = 200이며 FLV 파일이 width 648, height 480(약 4:3의 종횡비)으로 로드된 경우 align = VideoAlign.CENTER이고 scaleMode = NO_SCALE이면 width = 648, height = 480, x = (200 + ((100 - 648) / 2)) = -74 및 y = (200 + ((100 - 480) / 2)) = 10의 결과를 얻게 됩니다.
Tue Jun 12 2018, 03:17 PM Z
상속되는 공용 속성 숨기기
상속되는 공용 속성 표시