Chapter 8. Working with the camera

 

This chapter covers

  • Working with the photo and camera choosers
  • Taking pictures with the camera hardware
  • Editing pictures
  • Saving pictures to isolated storage

You’re reading this book because you want to build mobile applications. To build a useful mobile application, you need to understand how most mobile users use their phones. Do they only use their phones for talking and sending text messages? No. A lot of mobile users use their devices for listening to music or the radio, watching videos, and taking photos. As mobile developers, we need to know how to integrate multimedia into our applications to let users do what they want to do in better and more efficient ways. In this chapter, you’ll learn how to integrate the phone camera into your application and let the user capture photographs and include them in your application.

You may remember that we skipped the PhotoChooserTask and Camera-CaptureTask in chapter 5 when we covered launchers and choosers. Both of these tasks are related to the camera, and we explain them in detail in this chapter. The PhotoChooserTask allows your application to prompt the user to pick a picture from the Photos Hub to load into the application. The CameraCaptureTask allows your application to use the built-in camera application to take a picture for use in your application.

8.1. Starting the PhotoEditor project

8.2. Working with the camera tasks

8.3. Controlling the camera

8.4. Image editing

8.5. Summary