Created
September 1, 2015 14:26
-
-
Save TinyExplosions/4ba6b33f045fcd619c10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The annotationview is available at https://gist.github.com/TinyExplosions/f09d19187993dc24b263