共用方式為


ICameraControl::put_PanTilt

 
Microsoft DirectShow 9.0

ICameraControl::put_PanTilt

This topic applies only to Windows XP Service Pack 2 and later.

The put_PanTilt method sets the camera's pan and tilt angles.

Syntax

  HRESULT put_PanTilt(
  long  PanValue,
  long  TiltValue,
  long  Flags
);

Parameters

PanValue

[in]  Specifies the panning angle, in arc seconds. An arc second is 1/3600th of a degree. See ICameraControl::put_Pan.

TiltValue

[in]  Specifies the tilt angle, in arc seconds. See ICameraControl::put_Tilt.

Flags

[in]  Zero or more flags. See CameraControlFlags. If the CameraControl_Flags_Auto flag is used, the Value parameter is ignored and the camera sets the default value.

Return Values

Returns an HRESULT value.

Requirements

Header: Include Vidcap.h.

Library: Use Strmiids.lib.

See Also