Skip to content

Commit

Permalink
Picture Taken
Browse files Browse the repository at this point in the history
  • Loading branch information
aravind-segu committed Nov 4, 2017
1 parent fb7547f commit f2db8e8
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 12 deletions.
Binary file modified platforms/android/.gradle/3.3/taskArtifacts/fileHashes.bin
Binary file not shown.
Binary file modified platforms/android/.gradle/3.3/taskArtifacts/fileSnapshots.bin
Binary file not shown.
Binary file modified platforms/android/.gradle/3.3/taskArtifacts/taskArtifacts.bin
Binary file not shown.
Binary file modified platforms/android/.gradle/3.3/taskArtifacts/taskArtifacts.lock
Binary file not shown.
10 changes: 9 additions & 1 deletion platforms/android/assets/www/build/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion platforms/android/assets/www/build/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion platforms/android/assets/www/build/vendor.js.map

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions src/pages/home/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
</ion-header>

<ion-content padding>
<ion-fab right top>
<button ion-fab color="secondary" (click)="changeEffect()">
<ion-icon name="md-color-wand"></ion-icon>
</button>
</ion-fab>
<ion-fab right bottom>
<button ion-fab color="primary" (click)="takePicture()">
<ion-icon name="md-camera"></ion-icon>
Expand Down
10 changes: 9 additions & 1 deletion src/pages/home/home.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component } from '@angular/core';
import {NavController, ToastController} from 'ionic-angular';
import { Diagnostic } from '@ionic-native/diagnostic';
import {CameraPreview, CameraPreviewOptions} from "@ionic-native/camera-preview";
import {CameraPreview, CameraPreviewOptions, CameraPreviewPictureOptions} from "@ionic-native/camera-preview";


@Component({
Expand Down Expand Up @@ -61,5 +61,13 @@ export class HomePage {
})

}
takePicture(){
const pictureOpts: CameraPreviewPictureOptions = {
width: 1280,
height: 1280,
quality: 85
}
this.cameraPreview.takePicture(pictureOpts)
}

}
10 changes: 9 additions & 1 deletion www/build/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion www/build/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion www/build/vendor.js.map

Large diffs are not rendered by default.

0 comments on commit f2db8e8

Please sign in to comment.