共用方式為


ICameraControl::put_Zoom

 
Microsoft DirectShow 9.0

ICameraControl::put_Zoom

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

The put_Zoom method sets the camera's zoom level.

Syntax

  HRESULT put_Zoom(
  long  Value,
  long  Flags
);

Parameters

Value

[in]  Specifies the zoom level. The units for this setting are not defined. For information about calculating magnification from zoom level, see ICameraControl::get_FocalLengths.

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