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

Roman R.
  • 68,205
  • 6
  • 94
  • 158
l3golas
  • 107
  • 9

1 Answers1

0

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

Community
  • 1
  • 1
Roman R.
  • 68,205
  • 6
  • 94
  • 158
  • Thanks for the answer. Unfortunately the VMR Mixer Bitmap doesn't seem to work in the Compact Framework. Looking around I found something about the "Sample Grabber", do you know if it can be used? – l3golas Feb 21 '12 at 15:51
  • 1
    Yes you can. With `Sample Grabber` you get video frames coming through pipeline. If you initialize `Sample Grabber` to 24/32 bit RGB format, you will be having video frames in this format coming before they are shown on the screen. You can update this data in-place and put your overlays onto the picture. – Roman R. Feb 21 '12 at 16:10