Skip to content

Instantly share code, notes, and snippets.

@seksenov
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seksenov/d40d0159ef5bddab7cd6 to your computer and use it in GitHub Desktop.
Save seksenov/d40d0159ef5bddab7cd6 to your computer and use it in GitHub Desktop.
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
});
}
@dariuszparys
Copy link

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 !=?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment