Recently, it was hard to get photographed by a Windows Mobile Camera.

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.