Skip to content

SendCameraCommand

function

Delphi
function SendCameraCommand (Pan: LongInt; Tilt: LongInt; Relative: Boolean): Boolean;
C++Builder
bool __fastcall SendCameraCommand(System::LongInt Pan, System::LongInt Tilt, bool Relative);
C#
public bool SendCameraCommand(int Pan, int Tilt, bool Relative);
VB.NET
Public Function SendCameraCommand(Pan As Integer, Tilt As Integer, Relative As Boolean) As Boolean
C++/Qt
BOOL SendCameraCommand (int Pan, int Tilt, BOOL Relative);

Used to send Pan and Tilt commands to the camera currently selected as VideoDevice. Pass as Pan and Tilt the number of steps to perform. Use:

  • negative values to pan left
  • positive values to pan right
  • negative values to tilt down
  • positive values to tilt up
  • if Relative is true, the steps are applied to the current position of the camera
  • if Relative is false, the steps are applied from the origin position of the camera.

E.g.:

  • one step left, from the current position: VideoGrabber.SendCameraCommand (-1, 0, true);
  • two steps right, from the current position: VideoGrabber.SendCameraCommand (2, 0, true);
  • one step up, from the current position: VideoGrabber.SendCameraCommand (0, 1, true); end;
  • one step down, from the origin: VideoGrabber.SendCameraCommand (0, -1, false);
  • 2 steps right and 1 step up from the current position VideoGrabber.SendCameraCommand (2, 1, true);
  • back to the origin: VideoGrabber.SendCameraCommand (0, 0, false);