Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getPicture(){
- let options: CameraOptions = {
- destinationType: this.camera.DestinationType.DATA_URL,
- targetWidth: 1000,
- targetHeight: 1000,
- quality: 100
- }
- this.camera.getPicture( options )
- .then(imageData => {
- this.image = `data:image/jpeg;base64,${imageData}`;
- })
- .catch(error =>{
- console.error( error );
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement