ICImagingControl.VideoFormatCurrent Property

選択中のVideoformat オブジェクトを返します。

構文

[VB.NET]
Public  VideoFormatCurrent As TIS.Imaging.VideoFormat
[C#]
public TIS.Imaging.VideoFormat VideoFormatCurrent;

インフォメーション

IC Imaging Control 3.1より導入

構文

この例では現在使用中のビデオフォーマットをクエリし、その高さを表示させる方法を紹介しています。

[VB.NET]
Dim MyVideoFormat As TIS.Imaging.VideoFormat

MyVideoFormat = IcImagingControl1.VideoFormatCurrent

If Not MyVideoFormat Is Nothing Then
     Console.WriteLine("Current video format height is " + MyVideoFormat.Height.ToString())
Else
     Console.WriteLine("Currently no device opened")
End If
[C#]
TIS.Imaging.VideoFormat CurrentVideoFormat = null;

CurrentVideoFormat = ICImagingControl1.VideoFormatCurrent;

if  (CurrentVideoFormat != null)
{
     Console.WriteLine("Current video format height is " + CurrentVideoFormat.Height.ToString() ); }
else
{
     Console.WriteLine("Currently no device opened");
}