• English
  • Deutsch

IC Imaging Control .NET

ICImagingControl.VideoFormats Property

ICImagingControl.VideoFormats Property

Returns a collection of available video formats for the current device and video norm.
public VideoFormat[] VideoFormats;

Run time only, read only. Only available when a device is open and valid. Not available in live mode.


This example displays all available video formats of the current selected video capture device in a combo box. If no video formats are available, the text "n/a" will be displayed in the combo box . In this case the combo box will be disabled. The combo box for the video formats is named "cboVideoFormat" in this example.

cboVideoFormat.Items.Clear(); if( ICImagingControl1.VideoFormats.Length > 0 ) { // If video formats have been found, add them to the combobox. foreach( VideoFormat Item in ICImagingControl1.VideoFormats ) { cboVideoFormat.Items.Add(Item.Name); } cboVideoFormat.Enabled = true; cboVideoFormat.SelectedIndex = cboVideoFormat.Items.IndexOf(ICImagingControl1.VideoFormat); } else { // No video formats have been found. cboVideoFormat.Items.Add("n/a"); cboVideoFormat.Enabled = false; cboVideoFormat.SelectedIndex = 0; }

A complete example of how to get the video capture device properties can be found in Making Device Settings.

See also: ICImagingControl, VideoFormats, VideoFormat

<< ICImagingControl

Get in touch with us

About The Imaging Source

Established in 1988, 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