Discussion:
Image Capture Control for Windows Mobile using DirectShow
(too old to reply)
ink
2007-11-13 11:19:42 UTC
Permalink
Hi All,



I am trying to build an image capture user control using DirectShow to be
used in an existing C# application.

It needs to have a view finder/ preview window and be able to take still
images.



My problem is that I am a C# developer and I understand very little C++. It
seems that you really do need C++ to develop DirectShow on Windows Mobile.



So fare the best solution I have found to using direct show in C# is
DirectShowNet.

http://directshownet.sourceforge.net/

But this is for desktop and not windows mobile.



I have tried the CameraCapture example in the Windows mobile SDK, it records
the video fine but when it takes pictures all the images come out Black and
there is no preview for the image it is going to take.



I have looked through loads of different examples like hear is just 2 of the
5 I have found:

http://www.wimobot.com/SourceCode.aspx#WimoII

http://www.codeproject.com/useritems/VideoImageGrabber.asp?df=100&forumid=262127&exp=0&select=1720891&tid=1720891



But the only one I have managed to get to work consistently is on the
desktop in the SampleGrabberNET sample:

http://www.codeproject.com/cs/media/directshownet.asp

But I cant seem to port this to windows mobile.



I do know about CameraCaptureDialog, it is simply not flexible enough, that
is why I am trying to use DirectShow.



Creating a control that has a view finder and stores still images must be
possible cos the CameraCaptureDialog can do it and so I know it can be done.



Has anyone got a solution to this. I have seen loads of online posts trying
to get this to work but there seems to be very few answers.



Thanks

Ink
ink
2007-11-14 09:17:30 UTC
Permalink
I can not believe that nobody has any idea of how this can be done.

i have managed to stich together a hack which seems to be working but not
great.

I have used the WiMo Native camera DLL and then used PInvoke to access it
and take a picture every 500 milliseconds and display it in a picture box.
then when i want to save a still i simply call the picturebox.save method
and give it a unique name.

It seems to be working but is a very clugy hack.

does anybody have a better way?

thanks,
ink
Post by ink
Hi All,
I am trying to build an image capture user control using DirectShow to be
used in an existing C# application.
It needs to have a view finder/ preview window and be able to take still
images.
My problem is that I am a C# developer and I understand very little C++.
It seems that you really do need C++ to develop DirectShow on Windows
Mobile.
So fare the best solution I have found to using direct show in C# is
DirectShowNet.
http://directshownet.sourceforge.net/
But this is for desktop and not windows mobile.
I have tried the CameraCapture example in the Windows mobile SDK, it
records the video fine but when it takes pictures all the images come out
Black and there is no preview for the image it is going to take.
I have looked through loads of different examples like hear is just 2 of
http://www.wimobot.com/SourceCode.aspx#WimoII
http://www.codeproject.com/useritems/VideoImageGrabber.asp?df=100&forumid=262127&exp=0&select=1720891&tid=1720891
But the only one I have managed to get to work consistently is on the
http://www.codeproject.com/cs/media/directshownet.asp
But I cant seem to port this to windows mobile.
I do know about CameraCaptureDialog, it is simply not flexible enough,
that is why I am trying to use DirectShow.
Creating a control that has a view finder and stores still images must be
possible cos the CameraCaptureDialog can do it and so I know it can be done.
Has anyone got a solution to this. I have seen loads of online posts
trying to get this to work but there seems to be very few answers.
Thanks
Ink
Grzegorz Makarewicz
2007-11-14 10:11:52 UTC
Permalink
Post by ink
I can not believe that nobody has any idea of how this can be done.
http://blogs.msdn.com/marcpe/archive/2006/03/03/542941.aspx

works great with my spv e650

regards,
mak
Post by ink
i have managed to stich together a hack which seems to be working but
not great.
I have used the WiMo Native camera DLL and then used PInvoke to access
it and take a picture every 500 milliseconds and display it in a picture
box. then when i want to save a still i simply call the picturebox.save
method and give it a unique name.
It seems to be working but is a very clugy hack.
does anybody have a better way?
thanks,
ink
Post by ink
Hi All,
I am trying to build an image capture user control using DirectShow to
be used in an existing C# application.
It needs to have a view finder/ preview window and be able to take
still images.
My problem is that I am a C# developer and I understand very little
C++. It seems that you really do need C++ to develop DirectShow on
Windows Mobile.
So fare the best solution I have found to using direct show in C# is
DirectShowNet.
http://directshownet.sourceforge.net/
But this is for desktop and not windows mobile.
I have tried the CameraCapture example in the Windows mobile SDK, it
records the video fine but when it takes pictures all the images come
out Black and there is no preview for the image it is going to take.
I have looked through loads of different examples like hear is just 2
http://www.wimobot.com/SourceCode.aspx#WimoII
http://www.codeproject.com/useritems/VideoImageGrabber.asp?df=100&forumid=262127&exp=0&select=1720891&tid=1720891
But the only one I have managed to get to work consistently is on the
http://www.codeproject.com/cs/media/directshownet.asp
But I cant seem to port this to windows mobile.
I do know about CameraCaptureDialog, it is simply not flexible enough,
that is why I am trying to use DirectShow.
Creating a control that has a view finder and stores still images must
be possible cos the CameraCaptureDialog can do it and so I know it can
be done.
Has anyone got a solution to this. I have seen loads of online posts
trying to get this to work but there seems to be very few answers.
Thanks
Ink
Continue reading on narkive:
Loading...