| Package | com.media.orientation |
| Class | public class CameraOrientation |
| Inheritance | CameraOrientation Object |
| Method | Defined By | ||
|---|---|---|---|
| CameraOrientation | |||
deg(index:int):int
Camera orientation in degrees, rotation to put the image in the right direction. | CameraOrientation | ||
dispose():void
Dispose extension context. | CameraOrientation | ||
orientation(index:int):int
Camera orientation. | CameraOrientation | ||
rad(index:int):Number
Camera orientation in radians, rotation to put the image in the right direction. | CameraOrientation | ||
resolution(index:int):Object
Max camera resolution. | CameraOrientation | ||
resolution16by9(index:int):Object
Max camera resolution 16:9. | CameraOrientation | ||
resolution4by3(index:int):Object
Max camera resolution 4:3. | CameraOrientation | ||
resolutions(index:int):Array
Get an Array of camera resolutions. | CameraOrientation | ||
resolutions16by9(index:int):Array
Get an Array of camera resolutions 16:9. | CameraOrientation | ||
resolutions4by3(index:int):Array
Get an Array of camera resolutions 4:3. | CameraOrientation | ||
| Constant | Defined By | ||
|---|---|---|---|
| LANDSCAPE_LEFT : int = 4 [static]
Camera orientation landscape left
| CameraOrientation | ||
| LANDSCAPE_RIGHT : int = 3 [static]
Camera orientation landscape right
| CameraOrientation | ||
| PORTRAIT : int = 1 [static]
Camera orientation portrait
| CameraOrientation | ||
| PORTRAIT_UPSIDE_DOWN : int = 2 [static]
Camera orientation portrait upside down
| CameraOrientation | ||
| CameraOrientation | () | Constructor |
public function CameraOrientation()| deg | () | method |
public function deg(index:int):intCamera orientation in degrees, rotation to put the image in the right direction.
On Windows, macOS, Linux return always 0.
Parameters
index:int — Specifies which camera to get. To specify a value for this parameter, use the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use 2.
|
int — Camera orientation in degrees
|
| dispose | () | method |
public function dispose():voidDispose extension context.
| orientation | () | method |
public function orientation(index:int):intCamera orientation.
On Windows, macOS, Linux return always PORTRAIT.
Parameters
index:int — Specifies which camera to get. To specify a value for this parameter, use the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use 2.
|
int — Camera orientation, possible values are PORTRAIT, PORTRAIT_UPSIDE_DOWN, LANDSCAPE_LEFT or LANDSCAPE_RIGHT
|
| rad | () | method |
public function rad(index:int):NumberCamera orientation in radians, rotation to put the image in the right direction.
On Windows, macOS, Linux return always 0.
Parameters
index:int — Specifies which camera to get. To specify a value for this parameter, use the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use 2.
|
Number — Camera orientation in radians
|
| resolution | () | method |
public function resolution(index:int):ObjectMax camera resolution.
Parameters
index:int — Specifies which camera to get. To specify a value for this parameter, use the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use 2.
|
Object — Object with properties width and height
|
| resolution16by9 | () | method |
public function resolution16by9(index:int):ObjectMax camera resolution 16:9.
Parameters
index:int — Specifies which camera to get. To specify a value for this parameter, use the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use 2.
|
Object — Object with properties width and height
|
| resolution4by3 | () | method |
public function resolution4by3(index:int):ObjectMax camera resolution 4:3.
Parameters
index:int — Specifies which camera to get. To specify a value for this parameter, use the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use 2.
|
Object — Object with properties width and height
|
| resolutions | () | method |
public function resolutions(index:int):ArrayGet an Array of camera resolutions.
Parameters
index:int — Specifies which camera to get. To specify a value for this parameter, use the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use 2.
|
Array — Array of Camera resolutions, Object with properties width and height
|
| resolutions16by9 | () | method |
public function resolutions16by9(index:int):ArrayGet an Array of camera resolutions 16:9.
Parameters
index:int — Specifies which camera to get. To specify a value for this parameter, use the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use 2.
|
Array — Array of Camera resolutions, Object with properties width and height
|
| resolutions4by3 | () | method |
public function resolutions4by3(index:int):ArrayGet an Array of camera resolutions 4:3.
Parameters
index:int — Specifies which camera to get. To specify a value for this parameter, use the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use 2.
|
Array — Array of Camera resolutions, Object with properties width and height
|
| LANDSCAPE_LEFT | Constant |
public static const LANDSCAPE_LEFT:int = 4Camera orientation landscape left
| LANDSCAPE_RIGHT | Constant |
public static const LANDSCAPE_RIGHT:int = 3Camera orientation landscape right
| PORTRAIT | Constant |
public static const PORTRAIT:int = 1Camera orientation portrait
| PORTRAIT_UPSIDE_DOWN | Constant |
public static const PORTRAIT_UPSIDE_DOWN:int = 2Camera orientation portrait upside down