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

IESFProperties::SetResolution

HRESULT SetResolution(
  ESF_RESOLUTION Resolution,
  long lWidth,
  long lHeight
);

Resolution

[in] Desired resolution.

lWidth

[in] If Resolution is CUSTOM, this holds the desired image width. Ignored otherwise.

lHeight

[in] If Resolution is CUSTOM, this holds the desired image height. Ignored otherwise.

Sets the resolution setting.

This determines the size of the images produced by the source filter.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code

Description

S_OK

No error.

E_INVALIDARG

At least one argument holds an invalid value.

VFW_E_FILTER_ACTIVE

This setting cannot be changed while the filter is running.

VFW_E_ALREADY_CONNECTED

This setting cannot be changed while the filter is connected.

E_FAIL

This resolution is not available in this individual control configuration. See Picolo Alert individual control settings for more information.

Requirements

Header

ESFilter.h

Library

ESFilter.dll

MultiCam

5.0 or later

See also

Resolution

Individual Resolution Control

IESFProperties::GetResolution

IESFProperties::GetCustomResolutionRange