Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@TinyExplosions
Created September 1, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TinyExplosions/4ba6b33f045fcd619c10 to your computer and use it in GitHub Desktop.
Save TinyExplosions/4ba6b33f045fcd619c10 to your computer and use it in GitHub Desktop.
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

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