Draw something on the camera stream

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.
 
G

Guest

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.
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top