Camera.Parameters Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This class is obsoleted in this android platform
Camera service settings.
[Android.Runtime.Register("android/hardware/Camera$Parameters", DoNotGenerateAcw=true)]
[System.Obsolete("This class is obsoleted in this android platform")]
public class Camera.Parameters : Java.Lang.Object
[<Android.Runtime.Register("android/hardware/Camera$Parameters", DoNotGenerateAcw=true)>]
[<System.Obsolete("This class is obsoleted in this android platform")>]
type Camera.Parameters = class
inherit Object
- Inheritance
- Attributes
Remarks
Camera service settings.
To make camera parameters take effect, applications have to call Camera#setParameters(Camera.Parameters)
. For example, after Camera.Parameters#setWhiteBalance
is called, white balance is not actually changed until Camera#setParameters(Camera.Parameters)
is called with the changed parameters object.
Different devices may have different camera capabilities, such as picture size or flash modes. The application should query the camera capabilities before setting parameters. For example, the application should call Camera.Parameters#getSupportedColorEffects()
before calling Camera.Parameters#setColorEffect(String)
. If the camera does not support color effects, Camera.Parameters#getSupportedColorEffects()
will return null.
This member is deprecated. We recommend using the new android.hardware.camera2
API for new applications.
Java documentation for android.hardware.Camera.Parameters
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructors
Camera.Parameters(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Fields
Antibanding50hz | |
Antibanding60hz | |
AntibandingAuto | |
AntibandingOff | |
EffectAqua | |
EffectBlackboard | |
EffectMono | |
EffectNegative | |
EffectNone | |
EffectPosterize | |
EffectSepia | |
EffectSolarize | |
EffectWhiteboard | |
FlashModeAuto |
Obsolete.
Flash will be fired automatically when required. |
FlashModeOff |
Obsolete.
Flash will not be fired. |
FlashModeOn |
Obsolete.
Flash will always be fired during snapshot. |
FlashModeRedEye |
Obsolete.
Flash will be fired in red-eye reduction mode. |
FlashModeTorch |
Obsolete.
Constant emission of light during preview, auto-focus and snapshot. |
FocusDistanceFarIndex |
Obsolete.
The array index of far focus distance for use with
|
FocusDistanceNearIndex |
Obsolete.
The array index of near focus distance for use with
|
FocusDistanceOptimalIndex |
Obsolete.
The array index of optimal focus distance for use with
|
FocusModeAuto |
Obsolete.
Auto-focus mode. |
FocusModeContinuousPicture |
Obsolete.
Continuous auto focus mode intended for taking pictures. |
FocusModeContinuousVideo |
Obsolete.
Continuous auto focus mode intended for video recording. |
FocusModeEdof |
Obsolete.
Extended depth of field (EDOF). |
FocusModeFixed |
Obsolete.
Focus is fixed. |
FocusModeInfinity |
Obsolete.
Focus is set at infinity. |
FocusModeMacro |
Obsolete.
Macro (close-up) focus mode. |
PreviewFpsMaxIndex |
Obsolete.
The array index of maximum preview fps for use with |
PreviewFpsMinIndex |
Obsolete.
The array index of minimum preview fps for use with |
SceneModeAction |
Obsolete.
Take photos of fast moving objects. |
SceneModeAuto |
Obsolete.
Scene mode is off. |
SceneModeBarcode |
Obsolete.
Applications are looking for a barcode. |
SceneModeBeach |
Obsolete.
Take pictures on the beach. |
SceneModeCandlelight |
Obsolete.
Capture the naturally warm color of scenes lit by candles. |
SceneModeFireworks |
Obsolete.
For shooting firework displays. |
SceneModeHdr |
Obsolete.
Capture a scene using high dynamic range imaging techniques. |
SceneModeLandscape |
Obsolete.
Take pictures on distant objects. |
SceneModeNight |
Obsolete.
Take photos at night. |
SceneModeNightPortrait |
Obsolete.
Take people pictures at night. |
SceneModeParty |
Obsolete.
Take indoor low-light shot. |
SceneModePortrait |
Obsolete.
Take people pictures. |
SceneModeSnow |
Obsolete.
Take pictures on the snow. |
SceneModeSports |
Obsolete.
Take photos of fast moving objects. |
SceneModeSteadyphoto |
Obsolete.
Avoid blurry pictures (for example, due to hand shake). |
SceneModeSunset |
Obsolete.
Take sunset photos. |
SceneModeTheatre |
Obsolete.
Take photos in a theater. |
WhiteBalanceAuto | |
WhiteBalanceCloudyDaylight | |
WhiteBalanceDaylight | |
WhiteBalanceFluorescent | |
WhiteBalanceIncandescent | |
WhiteBalanceShade | |
WhiteBalanceTwilight | |
WhiteBalanceWarmFluorescent |
Properties
Antibanding |
Obsolete.
Gets the current antibanding setting. -or- Sets the antibanding. |
AutoExposureLock |
Obsolete.
Gets the state of the auto-exposure lock. -or- Sets the auto-exposure lock state. |
AutoWhiteBalanceLock |
Obsolete.
Gets the state of the auto-white balance lock. -or- Sets the auto-white balance lock state. |
Class |
Returns the runtime class of this |
ColorEffect |
Obsolete.
Gets the current color effect setting. -or- Sets the current color effect setting. |
ExposureCompensation |
Obsolete.
Gets the current exposure compensation index. -or- Sets the exposure compensation index. |
ExposureCompensationStep |
Obsolete.
Gets the exposure compensation step. |
FlashMode |
Obsolete.
Gets the current flash mode setting. -or- Sets the flash mode. |
FocalLength |
Obsolete.
Gets the focal length (in millimeter) of the camera. |
FocusAreas |
Obsolete.
Gets the current focus areas. -or- Sets focus areas. |
FocusMode |
Obsolete.
Gets the current focus mode setting. -or- Sets the focus mode. |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
HorizontalViewAngle |
Obsolete.
Gets the horizontal angle of view in degrees. |
IsAutoExposureLockSupported |
Obsolete.
Returns true if auto-exposure locking is supported. |
IsAutoWhiteBalanceLockSupported |
Obsolete.
Returns true if auto-white balance locking is supported. |
IsSmoothZoomSupported |
Obsolete.
Returns true if smooth zoom is supported. |
IsVideoSnapshotSupported |
Obsolete.
Returns true if video snapshot is supported. |
IsVideoStabilizationSupported |
Obsolete.
Returns true if video stabilization is supported. |
IsZoomSupported |
Obsolete.
Returns true if zoom is supported. |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
JpegQuality |
Obsolete.
Returns the quality setting for the JPEG picture. -or- Sets Jpeg quality of captured picture. |
JpegThumbnailQuality |
Obsolete.
Returns the quality setting for the EXIF thumbnail in Jpeg picture. -or- Sets the quality of the EXIF thumbnail in Jpeg picture. |
JpegThumbnailSize |
Obsolete.
Returns the dimensions for EXIF thumbnail in Jpeg picture. |
MaxExposureCompensation |
Obsolete.
Gets the maximum exposure compensation index. |
MaxNumDetectedFaces |
Obsolete.
Gets the maximum number of detected faces supported. |
MaxNumFocusAreas |
Obsolete.
Gets the maximum number of focus areas supported. |
MaxNumMeteringAreas |
Obsolete.
Gets the maximum number of metering areas supported. |
MaxZoom |
Obsolete.
Gets the maximum zoom value allowed for snapshot. |
MeteringAreas |
Obsolete.
Gets the current metering areas. -or- Sets metering areas. |
MinExposureCompensation |
Obsolete.
Gets the minimum exposure compensation index. |
PeerReference | (Inherited from Object) |
PictureFormat |
Obsolete.
Returns the image format for pictures. -or- Sets the image format for pictures. |
PictureSize |
Obsolete.
Returns the dimension setting for pictures. |
PreferredPreviewSizeForVideo |
Obsolete.
Returns the preferred or recommended preview size (width and height) in pixels for video recording. |
PreviewFormat |
Obsolete.
Returns the image format for preview frames got from
|
PreviewFrameRate |
Obsolete.
Returns the setting for the rate at which preview frames are received. -or- Sets the rate at which preview frames are received. |
PreviewSize |
Obsolete.
Returns the dimensions setting for preview pictures. |
SceneMode |
Obsolete.
Gets the current scene mode setting. -or- Sets the scene mode. |
SupportedAntibanding |
Obsolete.
Gets the supported antibanding values. |
SupportedColorEffects |
Obsolete.
Gets the supported color effects. |
SupportedFlashModes |
Obsolete.
Gets the supported flash modes. |
SupportedFocusModes |
Obsolete.
Gets the supported focus modes. |
SupportedJpegThumbnailSizes |
Obsolete.
Gets the supported jpeg thumbnail sizes. |
SupportedPictureFormats |
Obsolete.
Gets the supported picture formats. |
SupportedPictureSizes |
Obsolete.
Gets the supported picture sizes. |
SupportedPreviewFormats |
Obsolete.
Gets the supported preview formats. |
SupportedPreviewFpsRange |
Obsolete.
Gets the supported preview fps (frame-per-second) ranges. |
SupportedPreviewFrameRates |
Obsolete.
Gets the supported preview frame rates. |
SupportedPreviewSizes |
Obsolete.
Gets the supported preview sizes. |
SupportedSceneModes |
Obsolete.
Gets the supported scene modes. |
SupportedVideoSizes |
Obsolete.
Gets the supported video frame sizes that can be used by MediaRecorder. |
SupportedWhiteBalance |
Obsolete.
Gets the supported white balance. |
ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
VerticalViewAngle |
Obsolete.
Gets the vertical angle of view in degrees. |
VideoStabilization |
Obsolete.
Get the current state of video stabilization. -or- Enables and disables video stabilization. |
WhiteBalance |
Obsolete.
Gets the current white balance setting. -or- Sets the white balance. |
Zoom |
Obsolete.
Gets current zoom value. -or- Sets current zoom value. |
ZoomRatios |
Obsolete.
Gets the zoom ratios of all zoom values. |
Methods
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
Flatten() |
Obsolete.
Creates a single string with all the parameters set in this Parameters object. |
Get(String) |
Obsolete.
Returns the value of a String parameter. |
GetFocusDistances(Single[]) |
Obsolete.
Gets the distances from the camera to where an object appears to be in focus. |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetInt(String) |
Obsolete.
Returns the value of an integer parameter. |
GetPreviewFpsRange(Int32[]) |
Obsolete.
Returns the current minimum and maximum preview fps. |
JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
Remove(String) | |
RemoveGpsData() |
Obsolete.
Removes GPS latitude, longitude, altitude, and timestamp from the parameters. |
Set(String, Int32) |
Obsolete.
Sets an integer parameter. |
Set(String, String) |
Obsolete.
Sets a String parameter. |
SetGpsAltitude(Double) |
Obsolete.
Sets GPS altitude. |
SetGpsLatitude(Double) |
Obsolete.
Sets GPS latitude coordinate. |
SetGpsLongitude(Double) |
Obsolete.
Sets GPS longitude coordinate. |
SetGpsProcessingMethod(String) |
Obsolete.
Sets GPS processing method. |
SetGpsTimestamp(Int64) |
Obsolete.
Sets GPS timestamp. |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
SetJpegThumbnailSize(Int32, Int32) |
Obsolete.
Sets the dimensions for EXIF thumbnail in Jpeg picture. |
SetPictureSize(Int32, Int32) |
Obsolete.
Sets the dimensions for pictures. |
SetPreviewFpsRange(Int32, Int32) |
Obsolete.
Sets the minimum and maximum preview fps. |
SetPreviewSize(Int32, Int32) |
Obsolete.
Sets the dimensions for preview pictures. |
SetRecordingHint(Boolean) |
Obsolete.
Sets recording mode hint. |
SetRotation(Int32) |
Obsolete.
Sets the clockwise rotation angle in degrees relative to the orientation of the camera. |
ToArray<T>() | (Inherited from Object) |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
Unflatten(String) |
Obsolete.
Takes a flattened string of parameters and adds each one to this Parameters object. |
UnregisterFromRuntime() | (Inherited from Object) |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |