Grabber::getProperty Method

Returns the actual value of a property of the current video capture device.
Syntax:
long getProperty( tCameraPropertyEnum CameraPropType ) const;
long getProperty( tVideoPropertyEnum VideoPropType ) const;
Parameter Description
CameraPropType

Specifies the camera property to be queried. The possible properties are specified in Grabber::tCameraPropertyEnum.

VideoPropType

Specifies the video property to be queried. The possible properties are specified by Grabber::tVideoPropertyEnum.

Return value:

The current value of the given property.

Remarks:

This method returns the value of the specified property. The range of possible values can be determined by calling Grabber::getPropertyRange. Grabber::getPropertyDefault returns the default value for the specified property.

If an error occurred, 0 is returned, which may also be a valid property value. You should use Grabber::getLastError to determine whether an error occurred or not.

Note that the value for a property may only be queried, if "automatic mode" is disabled.

See also: Grabber, Grabber::getPropertyDefault, Grabber::getPropertyRange, Grabber::isPropertyAutomationAvailableWithCurDev, Grabber::isPropertyAutomationEnabled, Grabber::isPropertyAvailableWithCurDev, Grabber::setProperty, Grabber::tCameraPropertyEnum, Grabber::tVideoPropertyEnum

<< Grabber

This site is part of The Imaging Source Network. Other sites include Company Portal, Image Processing, Astronomy Cameras, Astronomy Cameras Blog, Blog caméras d'astronomie, Astronomy Cameras Competition, TX Text Control, TX Text Control Blog and Forums.