/// <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); }
public int GetExtraPreviewBitrate(int streamId) { Native.GetExtraPreviewBitrate(_camera.GetHandle(), streamId, out int bitrate). ThrowIfFailed("Failed to get extra preview bitrate"); return(bitrate); }
/// <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); }
/// <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); }
/// <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."); }
/// <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."); }
/// <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); }
/// <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."); }
/// <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."); }
/// <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."); }
/// <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."); }
/// <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."); }
/// <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."); }
public void SetExtraPreviewBitrate(int streamId, int bitrate) { Native.SetExtraPreviewBitrate(_camera.GetHandle(), streamId, bitrate). ThrowIfFailed("Failed to set extra preview bitrate"); }
/// <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."); }
/// <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."); }
/// <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."); }
/// <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."); }