Added keep aspect ratio parameter to camera.takePicture method.

This commit is contained in:
Nedyalko Nikolov
2015-04-16 15:38:59 +03:00
committed by Rossen Hristov
parent f28ff80e63
commit 267ce57d09
6 changed files with 57 additions and 13 deletions

3
camera/camera.d.ts vendored
View File

@@ -9,6 +9,7 @@ declare module "camera" {
* Take a photo using the camera.
* @param width - Optional parameter which defines the required width of the taken picture.
* @param height - Optional parameter which defines the required height of the taken picture.
* @param keepAspectRatio - Optional parameter which controls if the result picture will keep the aspect ratio of the picture taken by camera.
*/
export function takePicture(width?: number, heigth?: number): Promise<imageSource.ImageSource>;
export function takePicture(width?: number, heigth?: number, keepAspectRatio?: boolean): Promise<imageSource.ImageSource>;
}