Camera.takePicture([desiredWidth, desiredHeight]) Method (JS)
Starts an OS-specific image capture view and returns a Promise of the resulting Image.
If the desiredWidth and height parameters are set, returns an Image scaled as close to the specified width/height as possible while maintaining aspect ratio.
If no size parameters are given, the taken image will be full-sized as determined by the device camera.
The image capture view is user-configurable on Android.
Location
- Namespace
- Fuse.Camera
- Package
- Fuse.Camera 2.7.0
Returns
Promise
a Promise of a device-orientation-corrected read/writable Image.