Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
navigator.camera.getPicture(function(imageURI) {
new AnnotationView({img:imageURI});
this.cancelView();
}.bind(this), function(err) {
console.log("Error",err);
this.cancelView();
}.bind(this), {
sourceType: newPhoto ? Camera.PictureSourceType.CAMERA : Camera.PictureSourceType.PHOTOLIBRARY,
quality: 75,
saveToPhotoAlbum: newPhoto,
destinationType: Camera.DestinationType.FILE_URI,
encodingType: Camera.EncodingType.JPEG,
targetWidth: window.innerWidth,
targetHeight: window.innerHeight - 89
});
@TinyExplosions
Copy link
Author

TinyExplosions commented Sep 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment