How to change MediaCapture to byte[] in Windows Store App for Windows 8.1. From lib:
Windows.Media.Capture.MediaCapture asd = new Windows.Media.Capture.MediaCapture();
Thans!
How to change MediaCapture to byte[] in Windows Store App for Windows 8.1. From lib:
Windows.Media.Capture.MediaCapture asd = new Windows.Media.Capture.MediaCapture();
Thans!
I assume you want to get a byte array from what the camera is seeing at the moment, although it's hard to interpret from your question.
There is a sample on the Microsoft github page that is relevant, although they target Windows 10. You may be interested in migrating your project to get this functionality.
GetPreviewFrame: This sample will capture preview frames as opposed to full-blown photos, but it should be a good starting point. Once it has a preview frame, it can edit the pixels on it.
Here is the relevant part:
And declare this outside your class:
Have a closer look at the sample to see how to get all the details. Or, to have a walkthrough, you can watch the camera session from the recent //build/ conference, which includes a little bit of a walkthrough through some camera samples.