/// <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."); }
internal static extern CameraError SetTilt(IntPtr handle, CameraPtzMoveType type, int step);