Updated camera module to support full size images (Android) and custom size images.

This commit is contained in:
Nedyalko Nikolov
2015-04-15 15:31:51 +03:00
parent ca03b69e6e
commit 2fafb81d8f
3 changed files with 82 additions and 9 deletions

4
camera/camera.d.ts vendored
View File

@ -7,6 +7,8 @@ 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.
*/
export function takePicture(): Promise<imageSource.ImageSource>;
export function takePicture(width?: number, heigth?: number): Promise<imageSource.ImageSource>;
}