/// <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> /// 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> /// 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> /// 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."); }