Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function capturePhoto() {
- //Take picture using device camera and retrieve image as base64-encoded string
- navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 25,
- destinationType: Camera.DestinationType.FILE_URI, });
- }
- function onPhotoDataSuccess(imageURI) {
- displayPhoto(imageURI);
- }
- function displayPhoto(imageURI){
- capturedPhoto ++;
- document.getElementById('part' + capturedPhoto ).src = imageURI;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement