在UWP应用程序中的MediaCapture上绘制图像

时间:2016-07-14 09:08:15

标签: c# .net win-universal-app uwp

是否可以在CaptureElement或MediaCapture实例上绘制图像?使用以下代码,您可以获得一个不错的视频流,但是可以在每个帧上对其上的图像进行流式处理吗?

    mMediaCapture = new MediaCapture();
    await mMediaCapture.InitializeAsync();
    camera.Source = mMediaCapture;

    await mMediaCapture.StartPreviewAsync();

1 个答案:

答案 0 :(得分:0)

据我所知,你可以在XAML中完成。

<Grid>
    <CaptureElement x:Name="camera"/>
    <!-- put your code over capture element -->
    <Image Source="ms-appx:///Assets/myImage.png"/>
</Grid>
相关问题