PC Review


Reply
Thread Tools Rate Thread

Draw something on the camera stream

 
 
Philippe B.
Guest
Posts: n/a
 
      8th Nov 2007
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.
 
Reply With Quote
 
 
 
 
Philippe B.
Guest
Posts: n/a
 
      9th Nov 2007
nobody??
"Philippe B." <(E-Mail Removed)> wrote in message
news:71180B3F-C3E3-41A3-A5A7-(E-Mail Removed)...
> 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.


 
Reply With Quote
 
=?Utf-8?B?U2ltb24gSGFydCBbTVZQXQ==?=
Guest
Posts: n/a
 
      12th Nov 2007
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.

--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


"Philippe B." wrote:

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

 
Reply With Quote
 
Guest
Posts: n/a
 
      12th Nov 2007
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.


--

Chris Tacke, eMVP
Join the Embedded Developer Community
http://community.opennetcf.com


"Philippe B." <(E-Mail Removed)> wrote in message
news:71180B3F-C3E3-41A3-A5A7-(E-Mail Removed)...
> 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.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
stream video from computer to tv using dv camera =?Utf-8?B?RGpIaU50?= Windows XP Video 2 13th Jul 2011 10:09 PM
Re: Serving a video stream from an IP Camera Chris Reeder Microsoft VB .NET 0 12th Jan 2011 04:17 PM
Create word doc from a memory stream NO file stream used Nitin Mahajan Microsoft C# .NET 5 29th Jul 2008 04:49 PM
Draw lines, pset points, draw circles on a report =?Utf-8?B?aGdlcm9u?= Microsoft Access Reports 6 23rd May 2006 08:41 PM
Undocumented exceptions from Stream.EndWrite on HttpWebRequest request stream kevin cline Microsoft Dot NET Compact Framework 0 17th Nov 2005 02:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:09 AM.