Draw something on the camera stream

  • Thread starter Thread starter Philippe B.
  • Start date Start date
P

Philippe B.

Hello everybody,

I'm making an application for Windows Pocket PC (Compact Framework 2)
I've to take a picture by using CameraCaptureDialog.
I want to draw something on the camera stream (like a target).

Has anyone ever done this?

Thank you for your help

Philippe B.
 
I have never done this, but you could convert the stream to a bitmap image
which is what you are probebly currently doing ie:

Image bitmap = new Bitmap(myStream);

Then create a Graphics object from the image:

Graphics mygrfx = Graphics.FromImage(bitmap);

Then you can draw onto mygrfx using the DrawImage() method.
 
Use DShow and use a couple of surfaces, one for the video stream, the other
for whatever "other" stuff you want to render. And this isn't going to
happen in managed code.
 
Back
Top