Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Camera Class

April 12, 2014

The base class for camera application support.

Namespace:  Microsoft.Devices
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
public abstract class Camera : IDisposable

The Camera type exposes the following members.

  NameDescription
Public propertyAvailableResolutionsQueries the camera for the available resolutions.
Public propertyCameraTypeGets the type of camera that the Camera object represents; indicates the location of the camera on the device.
Public propertyOrientationGets the number of degrees that the viewfinder brush needs to be rotated clockwise to align with the camera sensor.
Public propertyPreviewResolutionGets the current resolution of the image provided by the PhotoCameraGetPreviewBuffer methods. This method is for use by the live viewfinder.
Public propertyResolutionGets or sets the resolution of the image captured by the camera.
Top
  NameDescription
Public methodDisposeDisposes of the image source stream and frees resources used by the Camera object.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeReleases unmanaged resources and performs other cleanup operations before the Camera object is reclaimed by garbage collection. (Overrides Object.Finalize().)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberIsCameraTypeSupportedDetermines whether the specified type of camera is supported on the device.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top
  NameDescription
Public eventInitializedOccurs when the camera object has been initialized.
Top

For more information about how to implement the members in this class, see How to create a base camera app for Windows Phone 8.

Important noteImportant Note:

multiple devices If photo capture is not a core feature of your application, consider using the Camera Capture Task to capture photos instead of using the camera APIs directly. Memory allocated for the Camera Capture Task does not count toward total application memory use. This helps minimize your application’s memory use, which is particularly important when your application runs on a lower-memory device. For more information, see Developing apps for lower-memory phones for Windows Phone 8 and How to use the camera capture task for Windows Phone 8.

Capabilities

If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.

ID_CAP_ISV_CAMERA

Windows Phone 8, Windows Phone OS 7.1

For more info, see App capabilities and hardware requirements for Windows Phone 8.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2014 Microsoft. All rights reserved.