473,386 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Image Capture Control for Windows Mobile using DirectShow

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 the
5 I have found:

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

http://www.codeproject.com/useritems...91&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

Nov 13 '07 #1
4 26259
ink

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


"ink" <in*@notmyemail.comwrote in message
news:eE*************@TK2MSFTNGP05.phx.gbl...
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...91&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
Nov 14 '07 #2
ink wrote:
>
I can not believe that nobody has any idea of how this can be done.
http://blogs.msdn.com/marcpe/archive...03/542941.aspx

works great with my spv e650

regards,
mak
>
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


"ink" <in*@notmyemail.comwrote in message
news:eE*************@TK2MSFTNGP05.phx.gbl...
>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...91&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
Nov 14 '07 #3
ink
Thanks Grzegorz
This is one of the examples i have already tried and in fact where i got the
idea from to take repeted picturs and display them on screen.

But it unfortunatly is not the solution.

What i do know from looking at working desktop examples is that the DLL
needs to open a vidio interface and attach it to a rendering out pin (I
think).

But there is no examples of this for CE devices.

Thanks,
ink

"Grzegorz Makarewicz" <ma*@trisoft.com.plwrote in message
news:fh**********@opal.futuro.pl...
ink wrote:
>>
I can not believe that nobody has any idea of how this can be done.

http://blogs.msdn.com/marcpe/archive...03/542941.aspx

works great with my spv e650

regards,
mak
>>
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


"ink" <in*@notmyemail.comwrote in message
news:eE*************@TK2MSFTNGP05.phx.gbl...
>>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...91&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
Nov 14 '07 #4
ink wrote:
Thanks Grzegorz
This is one of the examples i have already tried and in fact where i got
the idea from to take repeted picturs and display them on screen.

But it unfortunatly is not the solution.
Sic - I don't know why - sizing is not so good - but take look at mio -
or other sources where pictures can be taken up to 1800x1600.
>
What i do know from looking at working desktop examples is that the DLL
needs to open a vidio interface and attach it to a rendering out pin (I
think).

But there is no examples of this for CE devices.
not in wm6 examples (nothing there with atl camera), just download wm5
sdk - and see atl example camera application, without modifications
works - with varius htc 710 devices - spv 650 at last.

I have no time to transfer it - these calls to managed code - but it's
fairly simple.

mak
Nov 14 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: | last post by:
Hi, What is the best way to capture images from a FireWire DCAM camera? Is there any support for the DCAM protocol anywhere for C# on Windows 2000? If I understand it right TWAIN = legacy and...
6
by: Ravi | last post by:
Hi, Im trying to develop a Visual C# .NET app. that uses DirectShow filters to capture video from camera source. However, after going through a series of articles, I've seen that DirectShow is not...
1
by: Ravi | last post by:
Hi, Im trying to develop a Visual C# .NET app. that uses DirectShow filters to capture video from camera source. However, after going through a series of articles, I've seen that DirectShow is not...
2
by: Arash | last post by:
Dear all, I've got a video capture device. Device manager shows "nVidia WDM Video Capture (universal)" driver in "Sound, video and game controllers" category. Also, Windows Movie Maker, and...
10
by: Adam Honek | last post by:
This is probably a silly question but oh well, I can't find the answer looking via code. Having an imagelist already, how does one set an icon for a list view's sub items? I'm using the code...
6
by: Audrey | last post by:
Hi, Can I access image by image with c#.net from windows media player ? Tks for your help
6
by: k.vanderstarren | last post by:
Hi Everyone, Do any of you gurus out there have any suggestions regarding capturing audio/video from a video capture card in C#. Although I've written other programs, I've never worked with...
9
by: Kevin | last post by:
Hi! Which is the best way to webcam video capture with C# 2.0 and vs 2005? DirectX? VFW Windows Api ? Thanks
1
by: kbrewdev | last post by:
Hi Forum, I m working on moto q smart phone (windows mobile 5) n need to record voice in amr or qcp format. I m using directshow apis(smartphone 5 c++) to do this but not able to do this though...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.