ICImagingControl.InputChannels Property

Returns a collection of available input channels for the current video capture device.
Syntax:
[C#]
public InputChannel[] InputChannels;
Limitations:

Run time only, read only. Only available when a device is open and valid.

Sample:

This example displays all available input channels in a combo box. If no input channels 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 input channels is named "cboInputChannel" in this example.

[C#]
cboInputChannel.Items.Clear(); if( ICImagingControl1.InputChannelAvailable ) { // If input channels have been found, add them to the combobox. foreach( InputChannel Item in ICImagingControl1.InputChannels ) { cboInputChannel.Items.Add(Item.Name); } cboInputChannel.SelectedIndex = cboInputChannel.Items.IndexOf(ICImagingControl1.InputChannel); cboInputChannel.Enabled = true; } else { // No input channels have been found. cboInputChannel.Items.Add("n/a"); cboInputChannel.Enabled = false; cboInputChannel.SelectedIndex = 0; }

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

See also: ICImagingControl, InputChannels, ICImagingControl.InputChannelAvailable, ICImagingControl.InputChannel

<< ICImagingControl