Click here to Skip to main content
Click here to Skip to main content

Tagged as

Windows Mobile: CameraCaptureDialog alternative

, 19 Oct 2012
Rate this:
Please Sign up or sign in to vote.
This is not really an alternative but a different approach if you need the user to take multiple pictures in one session and then return to your application. The code starts the Camera application in background and waits for the minimise/close of the Camera dialog. If you first launch the camera usi

This is not really an alternative but a different approach if you need the user to take multiple pictures in one session and then return to your application.

The code starts the Camera application in background and waits for the minimise/close of the Camera dialog. If you first launch the camera using “pimg.exe -camerakey” the camera dialog shows a live preview (liveview). If you press the Enter key, you will get a snapshot and the camera dialog shows a preview of the image (imageview).

   

The screenshot for liveview does not show the real preview.

If you click (OK) in liveview, the dialog is hidden. If you click (OK) in imageview the liveview is displayed.

The demo app shows only two buttons and a listbox.

When you click [Start], the pimg.exe is started and comes into front. The showCamera application remains in background and waits for the ‘exit’ of the camera application.

showCamera also uses FileSystemWatcher (opennetcf) to watch for the new photo files taken. When the camera app is ‘closed’, a listbox shows the new photos.

Attached is the full C# source code (VS2008, WM 6.5.3, CF3.5) including a binary.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

hjgode

Germany Germany
No Biography provided

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web02 | 2.8.140814.1 | Last Updated 19 Oct 2012
Article Copyright 2012 by hjgode
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid