共用方式為


ICameraControl::put_ExposureRelative

 
Microsoft DirectShow 9.0

ICameraControl::put_ExposureRelative

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

The put_ExposureRelative method sets the camera's relative exposure time. The relative exposure time is expressed as a number of steps, where the size of each step depends on the camera model.

Syntax

  HRESULT put_ExposureRelative(
  long  Value,
  long  Flags
);

Parameters

Value

[in]  Specifies the relative exposure. To get the range of possible values, call ICameraControl::getRange_ExposureRelative.

Value Description
0 Set the exposure to the default exposure time, which is implementation dependent.
Postive value Increment the exposure time by one step.
Negative value Decrement the exposure time by one step.

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