MultiCam Boards Documentation > MultiCam Documentation > MultiCam DirectShow Reference > Reference Guide > Interfaces > IESFProperties > IESFProperties::SetCaptureRegionPos

IESFProperties::SetCaptureRegionPos

HRESULT SetCaptureRegionPos(
  long lPositionX
  long lPositionY
);

lPositionX

[in] Horizontal position of the capture region.

lPositionY

[in] Vertical position of the capture region.

Configures the capture region X and Y positions.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code

Description

S_OK

No error.

VFW_E_FILTER_ACTIVE

The filter is active. This setting cannot be changed.

VFW_E_ALREADY_CONNECTED

The filter is already connected. This setting cannot be changed.

E_INVALIDARG

Horizontal or vertical positions are out of bound.

E_FAIL

The operation failed.

Requirements

Header

ESFilter.h

Library

ESFilter.dll

MultiCam

5.0 or later

See also

Capture Region

IESFProperties::GetCaptureRegionPos

IESFProperties::GetCaptureRegionPosRange

IESFProperties::GetCaptureRegionSize

IESFProperties::GetCaptureRegionSizeRange

IESFProperties::SetCaptureRegionSize