キャプチャーモードでWeb(USB)カメラと接続します。
[Visual Basic]
Public Function Open(ByVal fileName As String) As Boolean
Public Function Open(ByVal fileName As String, ByVal videoDevice As String) As Boolean
Public Function Open(ByVal fileName As String, ByVal index As Integer) As Boolean

[C#]
public bool Open(string fileName);
public bool Open(string fileName, string videoDevice);
public bool Open(string fileName, int index);

パラメータ

fileName
保存するファイルの名称
videoDevice
Web(USB)カメラの名称
index
Web(USB)カメラのインデックス

戻り値

成功の場合は true 、失敗の場合は false を返します。

解説

パラメータの fileName で指定されたファイルに AVI 形式で動画が保存されます。
パラメータの videoDevice や index には GetVideoDevices メソッドで取得されるデバイスの名称や string 型の配列のインデックスを渡します(複数ある場合はそのうちの一つ)。videoDevice や index のないメソッドを使用すると GetVideoDevices メソッドで取得される先頭のデバイスを使用します。
戻り値が true の場合、State プロパティが更新されます。
戻り値が false の場合、ErrorStatus プロパティには DirectX, Step, Connect, Interface が設定されます。

注意事項
プレビュー(Preview クラス)とキャプチャーを同時に行うことはできません。キャプチャーを行う場合は Preview.Close を実行して一旦Web(USB)カメラとの接続を閉じ、再度 Record.Open を実行して接続してください。

参照

Record メンバ | Newtone.ImageKit.WPF.WebCamera.Record