IC Imaging Control C++

Grabber::setVideoFormat Method

Grabber::setVideoFormat Method

This method sets the video format to be used by the currently active video capture device.
Syntax:
bool setVideoFormat( const VideoFormatItem& videoformat );
bool setVideoFormat( const std::string& videoformatstring );
bool setVideoFormat( const std::wstring& videoformatstring );

Parameter Description
videoformat

Specifies the new video format to be used by the currently active video capture device.

videoformatstring

Specifies the name of the new video format to be used by the currently active video capture device.

Return value:

true, if the video format could be changed successfully, false otherwise.

Remarks:

This method sets the video format to be used by the current video capture device. The selectable video formats depend on the currently active video norm (see Grabber::setVideoNorm ).

See also: Grabber, VideoFormatItem, Grabber::getAvailableVideoFormats, Grabber::getVideoFormat

<< Grabber

Get in touch with us


About The Imaging Source

Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, video converters and embedded vision components for factory automation, quality assurance, medicine, science, security and a variety of other markets.

Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE, MIPI interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.

ISO 9001:2015 certified MVTEC | Edge AI + Vision Alliance | EMVA

Contact us