コード例 #1
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));
     CameraErrorFactory.ThrowIfError(Native.SetTilt(_camera.GetHandle(), type, tiltStep),
                                     "Failed to set the camera tilt type\t.");
 }