ICImagingControl.AviCompressors Property

利用可能なAVIコンプレッサ(ビデオコーデック)のコレクションを返します。

構文

[VB.NET]
Public AviCompressors As AviCompressor()
[C#]
public AviCompressor[] AviCompressors;

制限

読み取り専用、ランタイムオンリー

サンプル

このサンプルはコンボボックス内に利用可能なコンプレッサを全て表示します。コンプレッサが一つもインストールされていない場合、コンボボックスには"n/a"と表示され無効化されます。今回の例ではコンボボックスの名前は"cboVideoCodec" としています。

[VB.NET]
cboVideoCodec.Items.Clear()
If IcImagingControl1.AviCompressors.Length > 0 Then
     '  コンプレッサが見つかった場合、コンボボックスに追加。
     End If Item As AviCompressor
     For Each Item In IcImagingControl1.AviCompressors
         cboVideoCodec.Items.Add(Item.Name)
     Next
     cboVideoCodec.Enabled = True
Else
     '  コンプ レッサが見つからなかった場合。
     cboVideoCodec.Items.Add("n/a")
     cboVideoCodec.Enabled = False
End If
cboVideoCodec.SelectedIndex = 0
[C#]
cboVideoCodec.Items.Clear();
if (ICImagingControl1.AviCompressors.Length > 0)
{
     //  コンプレッサが見つかった場合、コンボボックスに追加。
     foreach (AviCompressor Item in ICImagingControl1.AviCompressors)
     {
         cboVideoCodec.Items.Add(Item.Name);
     }
     cboVideoCodec.Enabled = true;
}
else
{
     //  コンプレッサが見つからなかった場合。
     cboVideoCodec.Items.Add("n/a");
     cboVideoCodec.Enabled = false;
}
cboVideoCodec.SelectedIndex = 0;