Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private async void CaptureBtn_Click(object sender, RoutedEventArgs e)
- {
- file = await ApplicationData.Current.LocalFolder.CreateFileAsync("AttendanceImage.jpg",CreationCollisionOption.ReplaceExisting);
- await mediaCapture.CapturePhotoToStorageFileAsync(Windows.Media.MediaProperties.ImageEncodingProperties.CreateJpeg(), file);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement