Drawing a rectangle (or line, or bitmap) on the camera preview stream (.NET Compact Framework)

北战南征 提交于 2019-12-14 02:59:20

问题


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


回答1:


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


来源:https://stackoverflow.com/questions/9377901/drawing-a-rectangle-or-line-or-bitmap-on-the-camera-preview-stream-net-comp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!