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

IESFProperties::SetCaptureRegionSize

HRESULT SetCaptureRegionSize(
  long lSizeX
  long lSizeY
);

lSizeX

[in] Horizontal size of the capture region.

lSizeY

[in] Vertical size of the capture region.

Sets the capture region size.

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::GetCaptureRegionSize

IESFProperties::GetCaptureRegionSizeRange

IESFProperties::GetCaptureRegionPos

IESFProperties::GetCaptureRegionPosRange

IESFProperties::SetCaptureRegionPos