I have a MediaCapture from which I want to capture a stream, as follows:
Await Me.cardcapture.CapturePhotoToStreamAsync(ImageEncodingProperties.CreatePng(), stream)
This works fine, except that the stream is larger than I want (I want to keep it below 2MB). I have looked at the following page:
But I wasn't quite sure what to do. I also tried the following page:
But I couldn't get it to work. All I need is to get a smaller stream, can anybody help me? Thanks.