TVideoGrabber.SendCameraCommand

Prev

Next

TVideoGrabber

Methods

 




































































































Sends Pan and Tilt commands to the current camera


Declaration
function SendCameraCommand (Pan: LongInt; Tilt: LongInt; Relative: Boolean): Boolean;


bool __fastcall SendCameraCommand (int Pan, int Tilt, bool Relative);


function SendCameraCommand Pan as Long, Tilt as Long, Relative as Boolean)

Description

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


See Also
TCameraControl CameraControlAuto CameraControlDefault CameraControlMax CameraControlMin CameraControlSettings CameraControlStep GetCameraExposure GetCameraExposureAsString IsCameraControlAvailable IsCameraControlSettingAvailable SetCameraControl SetCameraExposure