Last active
August 29, 2015 14:15
-
-
Save seksenov/d40d0159ef5bddab7cd6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
if(typeof Windows != 'undefined') { | |
var captureUI = new Windows.Media.Capture.CameraCaptureUI(); | |
//Set the format of the picture that's going to be captured (.png, .jpg, ...) | |
captureUI.photoSettings.format = Windows.Media.Capture.CameraCaptureUIPhotoFormat.png; | |
//Pop up the camera UI to take a picture | |
captureUI.captureFileAsync(Windows.Media.Capture.CameraCaptureUIMode.photo).then(function (capturedItem) { | |
// Do something with the picture | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Kiril, I realized that your Gists have been included into this Website rjs.azurewebsites.net. As this site is used for demos in the field could you update the gist to check consistently with
!==
instead of!=
?