Class CameraSettings
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.Camera.dll
- API Level:
- 3
The camera setting class provides methods/properties to get and set basic camera attributes.
C#Copypublic class CameraSettings
- Inheritance
-
CameraSettings
Properties
AntiShake
The anti shake feature. If true, the antishake feature is enabled, otherwise false.
Declaration
C#Copypublic bool AntiShake { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic bool AutoContrast { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic CameraAutoFocusMode AutoFocusMode { get; set; }
Property Value
Type | Description |
---|---|
CameraAutoFocusMode | A CameraAutoFocusMode that specifies the auto focus mode. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic int Brightness { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic Range BrightnessRange { get; }
Property Value
Type | Description |
---|---|
Range |
Remarks
If the minimum value is greater than the maximum value, it means this feature is not supported.
Exceptions
Type | Condition |
---|---|
NotSupportedException | In case of this feature is not supported. |
API Level: 3
Declaration
C#Copypublic CameraPixelFormat CapturePixelFormat { get; set; }
Property Value
Type | Description |
---|---|
CameraPixelFormat | A CameraPixelFormat that specifies the pixel format of captured image. |
Exceptions
Type | Condition |
---|---|
ArgumentException | In case of invalid parameters. |
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic Size CaptureResolution { get; set; }
Property Value
Type | Description |
---|---|
Size |
Exceptions
Type | Condition |
---|---|
ArgumentException | In case of invalid parameters. |
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic int Contrast { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic Range ContrastRange { get; }
Property Value
Type | Description |
---|---|
Range |
Remarks
If the mininum value is greater than the maximum value, it means this feature is not supported.
Exceptions
Type | Condition |
---|---|
NotSupportedException | In case of this feature is not supported. |
API Level: 3
Declaration
C#Copypublic CameraEffectMode Effect { get; set; }
Property Value
Type | Description |
---|---|
CameraEffectMode | A CameraEffectMode that specifies the effect mode. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic bool EnableTag { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true if EXIF tags are enabled in the JPEG file, otherwise false. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic int EncodedPreviewBitrate { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic int EncodedPreviewGopInterval { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic int Exposure { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic CameraExposureMode ExposureMode { get; set; }
Property Value
Type | Description |
---|---|
CameraExposureMode | A CameraExposureMode that specifies the exposure mode. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic Range ExposureRange { get; }
Property Value
Type | Description |
---|---|
Range |
Remarks
If the minimum value is greater than the maximum value, it means this feature is not supported.
Exceptions
Type | Condition |
---|---|
NotSupportedException | In case of this feature is not supported. |
API Level: 3
Declaration
C#Copypublic CameraFlashMode FlashMode { get; set; }
Property Value
Type | Description |
---|---|
CameraFlashMode | A CameraFlashMode that specifies the flash mode. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic Location GeoTag { get; set; }
Property Value
Type | Description |
---|---|
Location |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic CameraHdrMode HdrMode { get; set; }
Property Value
Type | Description |
---|---|
CameraHdrMode | A CameraHdrMode that specifies the HDR mode. |
Remarks
Taking multiple pictures at different exposure levels and intelligently stitching them together, so that we eventually arrive at a picture that is representative in both dark and bright areas. If this attribute is set, then event handler set for the HdrCaptureProgress event is invoked.
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic int Hue { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 5
Declaration
C#Copypublic Range? HueRange { get; }
Property Value
Type | Description |
---|---|
Nullable<Range> |
Remarks
If HueRange returns null, it means that hue feature is not supported. It can be checked also with IsHueSupported.
See Also
API Level: 5
Declaration
C#Copypublic string ImageDescriptionTag { get; set; }
Property Value
Type | Description |
---|---|
String |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic int ImageQuality { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic CameraIsoLevel IsoLevel { get; set; }
Property Value
Type | Description |
---|---|
CameraIsoLevel | A CameraIsoLevel that specifies the ISO level. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic int LensOrientation { get; }
Property Value
Type | Description |
---|---|
Int32 |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic CameraTagOrientation OrientationTag { get; set; }
Property Value
Type | Description |
---|---|
CameraTagOrientation |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic Range PanRange { get; }
Property Value
Type | Description |
---|---|
Range |
Remarks
If the minimum value is greater than the maximum value, it means this feature is not supported.
Exceptions
Type | Condition |
---|---|
NotSupportedException | In case of this feature is not supported. |
API Level: 3
Declaration
C#Copypublic CameraFps PreviewFps { get; set; }
Property Value
Type | Description |
---|---|
CameraFps | A CameraFps that specifies the preview frame rate. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic CameraPixelFormat PreviewPixelFormat { get; set; }
Property Value
Type | Description |
---|---|
CameraPixelFormat | A CameraPixelFormat that specifies the pixel format of the preview data. |
Exceptions
Type | Condition |
---|---|
ArgumentException | In case of invalid parameters. |
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic Size PreviewResolution { get; set; }
Property Value
Type | Description |
---|---|
Size |
Exceptions
Type | Condition |
---|---|
ArgumentException | In case of invalid parameters. |
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic CameraPtzType PtzType { set; }
Property Value
Type | Description |
---|---|
CameraPtzType | A CameraPtzType that specifies the type of the PTZ. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic Size RecommendedPreviewResolution { get; }
Property Value
Type | Description |
---|---|
Size |
Remarks
Depending on the capture resolution aspect ratio and the display resolution, the recommended preview resolution is determined.
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic CameraSceneMode SceneMode { get; set; }
Property Value
Type | Description |
---|---|
CameraSceneMode | A CameraSceneMode that specifies the scene mode. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic string SoftwareTag { get; set; }
Property Value
Type | Description |
---|---|
String |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic Flips StreamFlip { get; set; }
Property Value
Type | Description |
---|---|
Flips | A Flips that specifies the camera flip type. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic Rotation StreamRotation { get; set; }
Property Value
Type | Description |
---|---|
Rotation | A Rotation that specifies the rotation of camera device. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic CameraTheaterMode TheaterMode { get; set; }
Property Value
Type | Description |
---|---|
CameraTheaterMode | A CameraTheaterMode that specifies the theater mode. |
Remarks
If you want to display the preview image on the external display with the full screen mode, use this property.
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic Range TiltRange { get; }
Property Value
Type | Description |
---|---|
Range |
Remarks
If the minimum value is greater than the maximum value, it means this feature is not supported.
Exceptions
Type | Condition |
---|---|
NotSupportedException | In case of this feature is not supported. |
API Level: 3
VideoStabilization
Enables or disables the video stabilization feature. If true, video stabilization is enabled, otherwise false.
Declaration
C#Copypublic bool VideoStabilization { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
If video stabilization is enabled, zero shutter lag is disabled. This feature is used to record a video.
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic CameraWhiteBalance WhiteBalance { get; set; }
Property Value
Type | Description |
---|---|
CameraWhiteBalance | A CameraWhiteBalance that specifies the white balance mode. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
ZoomLevel
The zoom level. The range for the zoom level is received from the ZoomRange property.
Declaration
C#Copypublic int ZoomLevel { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Declaration
C#Copypublic Range ZoomRange { get; }
Property Value
Type | Description |
---|---|
Range |
Remarks
If the minimum value is greater than the maximum value, it means this feature is not supported.
Exceptions
Type | Condition |
---|---|
NotSupportedException | In case of this feature is not supported. |
API Level: 3
Methods
Declaration
C#Copypublic void ClearFocusArea()
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Feature: http://tizen.org/feature/camera
DisableShutterSound(Boolean)
Turn the shutter sound on or off, if it is permitted by policy.
Declaration
C#Copypublic void DisableShutterSound(bool shutterSound)
Parameters
Type | Name | Description |
---|---|---|
Boolean | shutterSound | Shutter sound On/Off flag |
Remarks
If this value is true, shutter sound will be disabled, otherwise enabled. In some countries, this operation is not permitted.
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Disabling shutter sound is not permitted. |
ObjectDisposedException | The camera has already been disposed. |
API Level: 4
Feature: http://tizen.org/feature/camera
Declaration
C#Copypublic int GetExtraPreviewBitrate(int streamId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | streamId | The stream ID. |
Returns
Type | Description |
---|---|
Int32 | A bitrate of extra stream. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 10
GetExtraPreviewGopInterval(Int32)
Gets the GOP(Group Of Pictures) interval of extra preview with given stream ID.
Declaration
C#Copypublic int GetExtraPreviewGopInterval(int streamId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | streamId | The stream ID. |
Returns
Type | Description |
---|---|
Int32 | A GOP interval of extra preview. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 10
Declaration
C#Copypublic Rotation GetExtraPreviewRotation(int streamId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | streamId | The stream ID. |
Returns
Type | Description |
---|---|
Rotation | A rotation of extra preview. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 10
Declaration
C#Copypublic ExtraPreviewStreamInfo GetExtraPreviewStreamInfo(int streamId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | streamId | The stream ID. |
Returns
Type | Description |
---|---|
ExtraPreviewStreamInfo | A extra stream information. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 10
Declaration
C#Copypublic int GetPan()
Returns
Type | Description |
---|---|
Int32 | Returns the camera's horizontal position. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Feature: http://tizen.org/feature/camera
Declaration
C#Copypublic int GetTilt()
Returns
Type | Description |
---|---|
Int32 | Returns the current vertical position. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Feature: http://tizen.org/feature/camera
RemoveGeoTag()
Removes the geo tag(GPS data) in the EXIF(EXchangeable Image File format) tag.
Declaration
C#Copypublic void RemoveGeoTag()
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Feature: http://tizen.org/feature/camera
Declaration
C#Copypublic void SetAutoFocusArea(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
Int32 | x | X position. |
Int32 | y | Y position. |
Remarks
CameraAutoFocusMode should not be the None.
Exceptions
Type | Condition |
---|---|
ArgumentException | In case of invalid parameters. |
InvalidOperationException | In case of any invalid operations. |
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Feature: http://tizen.org/feature/camera
Declaration
C#Copypublic void SetAutoFocusArea(Point pos)
Parameters
Type | Name | Description |
---|---|---|
Point | pos | Point structure including X, Y position. |
Remarks
CameraAutoFocusMode should not be the None.
Exceptions
Type | Condition |
---|---|
ArgumentException | In case of invalid parameters. |
InvalidOperationException | In case of any invalid operations. |
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Feature: http://tizen.org/feature/camera
SetExtraPreviewBitrate(Int32, Int32)
Sets the bitrate of extra preview with given stream ID.
Declaration
C#Copypublic void SetExtraPreviewBitrate(int streamId, int bitrate)
Parameters
Type | Name | Description |
---|---|---|
Int32 | streamId | The stream ID. |
Int32 | bitrate | The bitrate for extra preview. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 10
SetExtraPreviewGopInterval(Int32, Int32)
Sets The GOP(Group Of Pictures) interval of extra preview with given stream ID.
Declaration
C#Copypublic void SetExtraPreviewGopInterval(int streamId, int gopInterval)
Parameters
Type | Name | Description |
---|---|---|
Int32 | streamId | The stream ID. |
Int32 | gopInterval | The GOP interval for extra preview. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 10
SetExtraPreviewStreamInfo(ExtraPreviewStreamInfo)
Sets the information of extra preview stream.
Declaration
C#Copypublic void SetExtraPreviewStreamInfo(ExtraPreviewStreamInfo info)
Parameters
Type | Name | Description |
---|---|---|
ExtraPreviewStreamInfo | info | The extra preview stream information. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The camera has already been disposed. |
API Level: 10
Declaration
C#Copypublic void SetPan(CameraPtzMoveType type, int panStep)
Parameters
Type | Name | Description |
---|---|---|
CameraPtzMoveType | type | The PTZ move type. CameraPtzMoveType. |
Int32 | panStep | The pan step. |
Exceptions
Type | Condition |
---|---|
ArgumentException | In case of invalid parameters. |
ObjectDisposedException | The camera has already been disposed. |
API Level: 3
Feature: http://tizen.org/feature/camera
Declaration
C#Copypublic void SetTilt(CameraPtzMoveType type, int tiltStep)
Parameters
Type | Name | Description |
---|---|---|
CameraPtzMoveType | type | the PTZ move type. |
Int32 | tiltStep | The tilt step. |
Exceptions
Type | Condition |
---|---|
ArgumentException | In case of invalid parameters. |
ObjectDisposedException | The camera has already been disposed. |