Package | com.distriqt.extension.camera.device |
Class | public class CameraMode |
Inheritance | CameraMode Object |
This class represents a 'mode of operation' for the camera. Basically you use this class to set the required resolution of image captures from the camera.
Property | Defined By | ||
---|---|---|---|
height : int = 0 | CameraMode | ||
mode : String = preset:low | CameraMode | ||
type : String | CameraMode | ||
width : int = 0 | CameraMode |
Method | Defined By | ||
---|---|---|---|
CameraMode(mode:String, width:int = 0, height:int = 0)
Constructor
| CameraMode | ||
fromObject(data:Object):CameraMode [static]
Internal helper for constructing modes
| CameraMode | ||
setPreset(mode:String):void | CameraMode |
Constant | Defined By | ||
---|---|---|---|
CUSTOM : String = custom [static]
The custom mode allows you to specify a width and height and the
extension will identify the closest possible resolution. | CameraMode | ||
PRESET_1280x720 : String = preset:1280x720 [static]
720p HD
| CameraMode | ||
PRESET_1920x1080 : String = preset:1920x1080 [static]
1080 HD
| CameraMode | ||
PRESET_352x288 : String = preset:352x288 [static]
| CameraMode | ||
PRESET_3840x2160 : String = preset:3840x2160 [static]
| CameraMode | ||
PRESET_640x480 : String = preset:640x480 [static]
VGA
| CameraMode | ||
PRESET_HIGH : String = preset:high [static]
Highest recording quality. | CameraMode | ||
PRESET_LOW : String = preset:low [static]
Suitable for 3G sharing. | CameraMode | ||
PRESET_MEDIUM : String = preset:medium [static]
Suitable for WiFi sharing. | CameraMode | ||
PRESET_PHOTO : String = preset:photo [static]
Full photo resolution. | CameraMode | ||
TYPE_PICTURE : String = picture [static] | CameraMode | ||
TYPE_VIDEO : String = video [static] | CameraMode |
height | property |
public var height:int = 0
mode | property |
public var mode:String = preset:low
type | property |
public var type:String
width | property |
public var width:int = 0
CameraMode | () | Constructor |
public function CameraMode(mode:String, width:int = 0, height:int = 0)
Constructor
Parametersmode:String (default = NaN )
| |
width:int (default = 0 )
| |
height:int (default = 0 )
|
fromObject | () | method |
public static function fromObject(data:Object):CameraMode
Internal helper for constructing modes
Parameters
data:Object |
CameraMode —
|
setPreset | () | method |
public function setPreset(mode:String):void
Parameters
mode:String |
CUSTOM | Constant |
public static const CUSTOM:String = custom
The custom mode allows you to specify a width and height and the extension will identify the closest possible resolution.
PRESET_1280x720 | Constant |
public static const PRESET_1280x720:String = preset:1280x720
720p HD
PRESET_1920x1080 | Constant |
public static const PRESET_1920x1080:String = preset:1920x1080
1080 HD
PRESET_352x288 | Constant |
public static const PRESET_352x288:String = preset:352x288
PRESET_3840x2160 | Constant |
public static const PRESET_3840x2160:String = preset:3840x2160
PRESET_640x480 | Constant |
public static const PRESET_640x480:String = preset:640x480
VGA
PRESET_HIGH | Constant |
public static const PRESET_HIGH:String = preset:high
Highest recording quality. This varies per device. This mode will always be available
PRESET_LOW | Constant |
public static const PRESET_LOW:String = preset:low
Suitable for 3G sharing. The actual values may change. This mode will always be available
PRESET_MEDIUM | Constant |
public static const PRESET_MEDIUM:String = preset:medium
Suitable for WiFi sharing. The actual values may change. This mode will always be available
PRESET_PHOTO | Constant |
public static const PRESET_PHOTO:String = preset:photo
Full photo resolution. This is not supported for video / preview output.
TYPE_PICTURE | Constant |
public static const TYPE_PICTURE:String = picture
TYPE_VIDEO | Constant |
public static const TYPE_VIDEO:String = video