Camera
This code sample is named CECamera. It demonstrates how to use the native Camera Capture API. The application allows you to take still pictures and video clips.
Feature Area
Relevant APIs
- Shell and User Interface Reference
- CAMERACAPTURE_MODE enumeration
- CAMERACAPTURE_STILLQUALITY enumeration
- CAMERACAPTURE_VIDEOTYPES enumeration
- SHCAMERACAPTURE structure
- SHCameraCapture function
- CameraCaptureDialog Class
Usage
To run the code sample
Navigate to the solution file (*.sln), and double-click it. By default, the solution files are copied to the following folders:
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Samples\CPP\Win32\Cecamera\CECamera.sln
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Samples\CPP\Win32\Cecamera\CECamera.sln
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Samples\Cs\Cecamera\CECamera.sln
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Samples\Cs\Cecamera\CECamera.sln
Microsoft Visual Studio 2005 launches and loads the solution.
Build the solution (Ctrl+Shift+B).
Deploy the solution (F5).
To use the application
- Specify the options you want in the dialog box.
- Press Start to launch Camera application.
- Begin taking pictures or videos.
Remarks
It is assumed that you have a camera-equipped Pocket PC or Smartphone.
Requirements
Pocket PC SDK: Windows Mobile 5.0 Pocket PC SDK.
Smartphone SDK: Windows Mobile 5.0 Smartphone SDK.
Development Environment: Visual Studio 2005.
ActiveSync: Version 4.0.
See Also
Code Samples | SHCameraCapture | SHCAMERACAPTURE | CAMERACAPTURE_VIDEOTYPES | CAMERACAPTURE_MODE | CAMERACAPTURE_STILLQUALITY | Camera Capture Graph | CameraCaptureDialog Class
Send Feedback on this topic to the authors