问题
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