ICImagingControl.SaveDeviceState Method

Saves the currently opened device and its settings to a string.
Syntax:
Public Function SaveDeviceState() As String
Return Value:

A string containing information about the opened device.

Limitations:

A valid device must be opened.

Remarks:

SaveDeviceState saves the following settings of ICImagingControl:

  • Opened Device and its serial number
  • Video norm
  • Video format
  • Input channel
  • Frame rate
  • Vertical Flip
  • Horizontal Flip
  • All VCDProperties

With ICImagingControl.LoadDeviceState, you can re-open the device with the saved settings.

Information:

Introduced in IC Imaging Control 2.0

Sample:

The following example saves the currently opened device to a file named "device.dat".

Dim deviceState As String
deviceState = ICImagingControl1.SaveDeviceState()
See also: ICImagingControl, ICImagingControl.LoadDeviceState

<< ICImagingControl