The following forum(s) have migrated to Microsoft Q&A (Preview): Developing Universal Windows apps!
Visit Microsoft Q&A (Preview) to post new questions.

Learn More

[UWP][VB]Limiting Stream Size For MediaCapture RRS feed

  • Question

  • 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.

    Nathan Sokalski

    Sunday, November 17, 2019 10:50 PM

All replies