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);

Sends Pan and Tilt commands to the camera currently selected as VideoDevice. The Pan and Tilt parameters specify the number of steps to perform.

  • Pan: negative values pan left, positive values pan right.

  • Tilt: negative values tilt down, positive values tilt up.

  • Relative: if true, the steps are applied to the current position of the camera; if false, the steps are applied from the origin position of the camera.

Examples:

  • 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);

  • one step down, from the origin: VideoGrabber.SendCameraCommand (0, -1, false);

  • two steps right and one step up, from the current position: VideoGrabber.SendCameraCommand (2, 1, true);

  • back to the origin: VideoGrabber.SendCameraCommand (0, 0, false);