Android Guides | Samples

Android.Media.CameraProfile Class

The CameraProfile class is used to retrieve the pre-defined still image capture (jpeg) quality levels (0-100) used for low, medium, and high quality settings in the Camera application.

See Also: CameraProfile

Syntax

[Android.Runtime.Register("android/media/CameraProfile", DoNotGenerateAcw=true)]
public class CameraProfile : Object

Remarks

The CameraProfile class is used to retrieve the pre-defined still image capture (jpeg) quality levels (0-100) used for low, medium, and high quality settings in the Camera application.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8

The members of Android.Media.CameraProfile are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
QualityHighCameraQuality (2).
const
QualityLowCameraQuality (0). Define three quality levels for JPEG image encoding.
const
QualityMediumCameraQuality (1).

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
GetJpegEncodingQualityParameter(CameraQuality) : Int32
Returns a pre-defined still image capture (jpeg) quality level used for the given quality level in the Camera application for the first back-facing camera on the device.
static
GetJpegEncodingQualityParameter(Int32, CameraQuality) : Int32
Returns a pre-defined still image capture (jpeg) quality level used for the given quality level in the Camera application for the specified camera.