Exemple #1
0
        /// <summary>
        /// Gets the current position of the camera.
        /// </summary>
        /// <since_tizen> 3 </since_tizen>
        /// <returns>Returns the current vertical position.</returns>
        /// <exception cref="ObjectDisposedException">The camera already has been disposed of.</exception>
        public int GetTilt()
        {
            CameraErrorFactory.ThrowIfError(Native.GetTilt(_camera.GetHandle(), out int val),
                                            "Failed to set the camera current position.");

            return(val);
        }
Exemple #2
0
        public int GetExtraPreviewBitrate(int streamId)
        {
            Native.GetExtraPreviewBitrate(_camera.GetHandle(), streamId, out int bitrate).
            ThrowIfFailed("Failed to get extra preview bitrate");

            return(bitrate);
        }
Exemple #3
0
        /// <summary>
        /// Gets the current position of the camera.
        /// </summary>
        /// <since_tizen> 3 </since_tizen>
        /// <returns>Returns the camera's horizontal position.</returns>
        /// <exception cref="ObjectDisposedException">The camera already has been disposed of.</exception>
        public int GetPan()
        {
            CameraErrorFactory.ThrowIfError(Native.GetPan(_camera.GetHandle(), out int val),
                                            "Failed to get the camera pan step.");

            return(val);
        }
Exemple #4
0
        /// <summary>
        /// Gets the current position of the camera.
        /// </summary>
        /// <since_tizen> 3 </since_tizen>
        /// <feature> http://tizen.org/feature/camera </feature>
        /// <returns>Returns the current vertical position.</returns>
        /// <exception cref="ObjectDisposedException">The camera already has been disposed of.</exception>
        public int GetTilt()
        {
            Native.GetTilt(_camera.GetHandle(), out int val).
            ThrowIfFailed("Failed to set the camera current position.");

            return(val);
        }
Exemple #5
0
        /// <summary>
        /// Sets the position to move horizontally.
        /// </summary>
        /// <param name="type">The PTZ move type. <seealso cref="CameraPtzMoveType"/>.</param>
        /// <param name="panStep">The pan step.</param>
        /// <since_tizen> 3 </since_tizen>
        /// <feature> http://tizen.org/feature/camera </feature>
        /// <exception cref="ArgumentException">In case of invalid parameters.</exception>
        /// <exception cref="ObjectDisposedException">The camera already has been disposed of.</exception>
        public void SetPan(CameraPtzMoveType type, int panStep)
        {
            ValidationUtil.ValidateEnum(typeof(CameraPtzMoveType), type, nameof(type));

            Native.SetPan(_camera.GetHandle(), type, panStep).
            ThrowIfFailed("Failed to set the camera pan type.");
        }
Exemple #6
0
        /// <summary>
        /// Sets the position to move vertically.
        /// </summary>
        /// <param name="type">the PTZ move type.</param>
        /// <param name="tiltStep">The tilt step.</param>
        /// <since_tizen> 3 </since_tizen>
        /// <feature> http://tizen.org/feature/camera </feature>
        /// <exception cref="ArgumentException">In case of invalid parameters.</exception>
        /// <exception cref="ObjectDisposedException">The camera already has been disposed of.</exception>
        public void SetTilt(CameraPtzMoveType type, int tiltStep)
        {
            ValidationUtil.ValidateEnum(typeof(CameraPtzMoveType), type, nameof(type));

            Native.SetTilt(_camera.GetHandle(), type, tiltStep).
            ThrowIfFailed("Failed to set the camera tilt type\t.");
        }
Exemple #7
0
        /// <summary>
        /// Gets the current position of the camera.
        /// </summary>
        /// <returns>Returns the camera's horizontal position.</returns>
        /// <since_tizen> 3 </since_tizen>
        /// <feature> http://tizen.org/feature/camera </feature>
        /// <exception cref="ObjectDisposedException">The camera already has been disposed of.</exception>
        public int GetPan()
        {
            Native.GetPan(_camera.GetHandle(), out int val).
            ThrowIfFailed("Failed to get the camera pan step.");

            return(val);
        }
Exemple #8
0
 /// <summary>
 /// Turn the shutter sound on or off, if it is permitted by policy.
 /// </summary>
 /// <param name="shutterSound">Shutter sound On/Off flag</param>
 /// <since_tizen> 4 </since_tizen>
 /// <feature> http://tizen.org/feature/camera </feature>
 /// <remarks>
 /// If this value is true, shutter sound will be disabled, otherwise enabled.
 /// In some countries, this operation is not permitted.
 /// </remarks>
 /// <exception cref="InvalidOperationException">Disabling shutter sound is not permitted.</exception>
 /// <exception cref="ObjectDisposedException">The camera already has been disposed of.</exception>
 public void DisableShutterSound(bool shutterSound)
 {
     Native.DisableShutterSound(_camera.GetHandle(), shutterSound).
     ThrowIfFailed("Failed to set disable shutter sound.");
 }
Exemple #9
0
 /// <summary>
 /// Sets the auto focus area.
 /// </summary>
 /// <since_tizen> 3 </since_tizen>
 /// <remarks>
 /// <see cref="CameraAutoFocusMode"/> should not be the <see cref="CameraAutoFocusMode.None"/>.
 /// </remarks>
 /// <param name="pos"><see cref="Point"/> structure including X, Y position.</param>
 /// <exception cref="ArgumentException">In case of invalid parameters.</exception>
 /// <exception cref="InvalidOperationException">In case of any invalid operations.</exception>
 /// <exception cref="ObjectDisposedException">The camera already has been disposed of.</exception>
 public void SetAutoFocusArea(Point pos)
 {
     CameraErrorFactory.ThrowIfError(Native.SetAutoFocusArea(_camera.GetHandle(), pos.X, pos.Y),
                                     "Failed to set the autofocus area.");
 }
Exemple #10
0
 /// <summary>
 /// Turn the shutter sound on or off, if it is permitted by policy.
 /// </summary>
 /// <since_tizen> 4 </since_tizen>
 /// <param name="shutterSound">Shutter sound On/Off flag</param>
 /// <remarks>
 /// If this value is true, shutter sound will be disabled, otherwise enabled.
 /// In some countries, this operation is not permitted.
 /// </remarks>
 /// <exception cref="InvalidOperationException">Disabling shutter sound is not permitted.</exception>
 /// <exception cref="ObjectDisposedException">The camera already has been disposed of.</exception>
 public void DisableShutterSound(bool shutterSound)
 {
     CameraErrorFactory.ThrowIfError(Native.DisableShutterSound(_camera.GetHandle(), shutterSound),
                                     "Failed to set disable shutter sound.");
 }
Exemple #11
0
 /// <summary>
 /// Sets the auto focus area.
 /// </summary>
 /// <since_tizen> 3 </since_tizen>
 /// <remarks>
 /// <see cref="CameraAutoFocusMode"/> should not be the <see cref="CameraAutoFocusMode.None"/>.
 /// </remarks>
 /// <param name="x">X position.</param>
 /// <param name="y">Y position.</param>
 /// <exception cref="ArgumentException">In case of invalid parameters.</exception>
 /// <exception cref="InvalidOperationException">In case of any invalid operations.</exception>
 /// <exception cref="ObjectDisposedException">The camera already has been disposed of.</exception>
 public void SetAutoFocusArea(int x, int y)
 {
     CameraErrorFactory.ThrowIfError(Native.SetAutoFocusArea(_camera.GetHandle(), x, y),
                                     "Failed to set the autofocus area.");
 }
Exemple #12
0
 /// <summary>
 /// Removes the geo tag(GPS data) in the EXIF(EXchangeable Image File format) tag.
 /// </summary>
 /// <since_tizen> 3 </since_tizen>
 /// <exception cref="ObjectDisposedException">The camera already has been disposed of.</exception>
 public void RemoveGeoTag()
 {
     CameraErrorFactory.ThrowIfError(Native.RemoveGeotag(_camera.GetHandle()),
                                     "Failed to remove the geotag\t.");
 }
Exemple #13
0
 /// <summary>
 /// Clears the auto focus area.
 /// </summary>
 /// <since_tizen> 3 </since_tizen>
 /// <exception cref="ObjectDisposedException">The camera already has been disposed of.</exception>
 public void ClearFocusArea()
 {
     CameraErrorFactory.ThrowIfError(Native.ClearAutoFocusArea(_camera.GetHandle()),
                                     "Failed to clear the autofocus area.");
 }
Exemple #14
0
 public void SetExtraPreviewBitrate(int streamId, int bitrate)
 {
     Native.SetExtraPreviewBitrate(_camera.GetHandle(), streamId, bitrate).
     ThrowIfFailed("Failed to set extra preview bitrate");
 }
Exemple #15
0
 /// <summary>
 /// Sets the auto focus area.
 /// </summary>
 /// <param name="x">X position.</param>
 /// <param name="y">Y position.</param>
 /// <since_tizen> 3 </since_tizen>
 /// <feature> http://tizen.org/feature/camera </feature>
 /// <remarks>
 /// <see cref="CameraAutoFocusMode"/> should not be the <see cref="CameraAutoFocusMode.None"/>.
 /// </remarks>
 /// /// <exception cref="ArgumentException">In case of invalid parameters.</exception>
 /// <exception cref="InvalidOperationException">In case of any invalid operations.</exception>
 /// <exception cref="ObjectDisposedException">The camera already has been disposed of.</exception>
 public void SetAutoFocusArea(int x, int y)
 {
     Native.SetAutoFocusArea(_camera.GetHandle(), x, y).
     ThrowIfFailed("Failed to set the autofocus area.");
 }
Exemple #16
0
 /// <summary>
 /// Removes the geo tag(GPS data) in the EXIF(EXchangeable Image File format) tag.
 /// </summary>
 /// <since_tizen> 3 </since_tizen>
 /// <feature> http://tizen.org/feature/camera </feature>
 /// <exception cref="ObjectDisposedException">The camera already has been disposed of.</exception>
 public void RemoveGeoTag()
 {
     Native.RemoveGeotag(_camera.GetHandle()).
     ThrowIfFailed("Failed to remove the geotag.");
 }
Exemple #17
0
 /// <summary>
 /// Clears the auto focus area.
 /// </summary>
 /// <since_tizen> 3 </since_tizen>
 /// <feature> http://tizen.org/feature/camera </feature>
 /// <exception cref="ObjectDisposedException">The camera already has been disposed of.</exception>
 public void ClearFocusArea()
 {
     Native.ClearAutoFocusArea(_camera.GetHandle()).
     ThrowIfFailed("Failed to clear the autofocus area.");
 }
Exemple #18
0
 /// <summary>
 /// Sets the auto focus area.
 /// </summary>
 /// <param name="pos"><see cref="Point"/> structure including X, Y position.</param>
 /// <since_tizen> 3 </since_tizen>
 /// <feature> http://tizen.org/feature/camera </feature>
 /// <remarks>
 /// <see cref="CameraAutoFocusMode"/> should not be the <see cref="CameraAutoFocusMode.None"/>.
 /// </remarks>
 /// /// <exception cref="ArgumentException">In case of invalid parameters.</exception>
 /// <exception cref="InvalidOperationException">In case of any invalid operations.</exception>
 /// <exception cref="ObjectDisposedException">The camera already has been disposed of.</exception>
 public void SetAutoFocusArea(Point pos)
 {
     Native.SetAutoFocusArea(_camera.GetHandle(), pos.X, pos.Y).
     ThrowIfFailed("Failed to set the autofocus area.");
 }