Search code examples
cameracompact-frameworkoverlaydirectshowdirectshow.net

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


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


Solution

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