在相机预览流(.NET Compact Framework)上绘制矩形(或线或位图) [英] Drawing a rectangle (or line, or bitmap) on the camera preview stream (.NET Compact Framework)

查看:266
本文介绍了在相机预览流(.NET Compact Framework)上绘制矩形(或线或位图)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个.NET CF 2.0应用程序,使用相机,显示预览,并允许用户拍照。我使用CameraCaptureDialog组件,我想在预览屏幕上绘制一个矩形,但我不能做到...任何想法?
你认为DirectShow中的Overlay混音器过滤器可能有用吗?如果是,你有什么例子吗? (问题是我在CF 2.0,所以很多解决方案,工作正常的框架在这​​里不工作...)。
提前感谢,

I'm working on a .NET CF 2.0 application that uses the camera, showing the preview and allowing the user to take a photo. I'm using the CameraCaptureDialog component and I wanted to draw a rectangle on the preview screen, but I wasn't able to do it... Any ideas? Do you think the Overlay mixer filter in DirectShow can be useful? If so, do you have any example? (The problem is I work on the CF 2.0, so many solutions that work ok for the normal framework here don't work...). Thanks in advance,

Giacomo

推荐答案

需要查找显示VMR混合器位图功能的示例,并使用自定义重叠混合显示视频

You need to look for samples showing VMR Mixer Bitmap capability and mixing presented video with custom overlay

  • Drawing video with text on top
  • Drawing on top of DirectShow - desperate
  • Displaying an Application-Supplied Bitmap on the Composited Image

这篇关于在相机预览流(.NET Compact Framework)上绘制矩形(或线或位图)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆