It is reasonable to say that there are ready-made classes available for using. Net CF on Windows Mobile.CodeSolution:
Code Cameracapturedialog = New Cameracapturedialog ();
If (Cameracapturedialog. showdialog () = Dialogresult. OK)
{
Image = New Bitmap (cameracapturedialog. filename );
This . Picturebox1.image = Image;
}
The test passed on the simulator, but it can be put on a real machine, which is not easy to use. What's strange is that it also causes the camera that comes with the machine.ProgramIf it is not easy to use, you have to restart the machine.
If. Net doesn't work, change C ++ and use the sdk api. There is a cecamera in the samples that comes with the SDK. The simulator passes, and the real machine is dead !!
If it still doesn't work, change to the lower-level API and use DirectShow. There is also a ready-made example: cameracapture; but the results are still the same !!!
Now, I am really depressed ~~~~
Test Project: mobilecamera.zip