Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function capturePhoto() {
- networkState = navigator.network.connection.type;
- if (networkState == Connection.NONE)
- {
- alert('You must be connected to the internet to use this feature!');
- }else{
- var options = {
- quality: 100,
- correctOrientation: false,
- destinationType : navigator.camera.DestinationType.FILE_URI,
- sourceType: navigator.camera.PictureSourceType.CAMERA,
- encodingType: navigator.camera.EncodingType.JPEG,
- }
- navigator.camera.getPicture(onPhotoDataSuccess, onFail, options);
- }
- }
- var canvaswidth = window.innerWidth;
- var canvasheight = window.innerHeight;
- var darthVaderImg = new Kinetic.Image({
- x: 0,
- y: 0,
- image: images.darthVader,
- width: canvaswidth,
- height: canvasheight,
- name: "image"
- });
- targetWidth: 320,
- targetHeight: 480,
- var canvaswidth = 320;
- var canvasheight = 480;
- var darthVaderImg = new Kinetic.Image({
- x: 0,
- y: 0,
- image: images.darthVader,
- width: canvaswidth,
- height: canvasheight,
- name: "image"
- });
- window.innerHeight
Add Comment
Please, Sign In to add comment