C# 클래스 NewTOAPIA.Media.VfwCameraDevice

The VfwCameraDevice object represents a Vfw video capture device. As Vfw also supports audio capture devices, this object is specialized to only the video capture interfaces.
상속: VfwCaptureDevice
파일 보기 프로젝트 열기: Wiladams/NewTOAPIA 1 사용 예제들

공개 메소드들

메소드 설명
ConfigureCapture ( ) : void

We can configure some settings related to capturing images from the camera. Primarily we want to control how many buffers are used in the capture process. If we are doing continuous capture, we can configure the interval between subsequent frames.

GetBitmapInfo ( ) : BITMAPINFO
GrabSingleFrame ( ) : bool

Grab a single frame from the video device. Disables Overlay and preview. Since we want complete control of video grabbing, this is what we want. We don't want or need a preview window, and we don't want to be doing overlay either. As the frame is grabbed, our frameDelegate function is called with the retrieved frame.

OnConnected ( ) : void
ShowCompressionChoices ( ) : void
ShowPreviewWindow ( ) : bool
ShowVideoFormats ( ) : void
ShowVideoSourceChoices ( ) : void

If the driver supports a dialog box to select the video Source, this method will display it on the screen.

StartStreaming ( ) : bool
StopStreaming ( ) : bool
VfwCameraDevice ( int width, int height ) : System
VfwCameraDevice ( int index, int width, int height, int fps, int windowStyle, IntPtr parentWindow ) : System

비공개 메소드들

메소드 설명
ConfigureVideoFormat ( ) : void
ControlCallback ( IntPtr hWnd, int nState ) : int
ErrorCallback ( IntPtr hWnd, int nID, string lpsz ) : int
FrameCallBack ( IntPtr hwnd, VIDEOHDR &hdr ) : void
PrintCompressionType ( uint compression ) : void
StatusCallback ( IntPtr hWnd, int nID, string lpsz ) : int
StreamCallBack ( IntPtr hwnd, VIDEOHDR &hdr ) : void

메소드 상세

ConfigureCapture() 공개 메소드

We can configure some settings related to capturing images from the camera. Primarily we want to control how many buffers are used in the capture process. If we are doing continuous capture, we can configure the interval between subsequent frames.
public ConfigureCapture ( ) : void
리턴 void

GetBitmapInfo() 공개 메소드

public GetBitmapInfo ( ) : BITMAPINFO
리턴 TOAPI.Types.BITMAPINFO

GrabSingleFrame() 공개 메소드

Grab a single frame from the video device. Disables Overlay and preview. Since we want complete control of video grabbing, this is what we want. We don't want or need a preview window, and we don't want to be doing overlay either. As the frame is grabbed, our frameDelegate function is called with the retrieved frame.
public GrabSingleFrame ( ) : bool
리턴 bool

OnConnected() 공개 메소드

public OnConnected ( ) : void
리턴 void

ShowCompressionChoices() 공개 메소드

public ShowCompressionChoices ( ) : void
리턴 void

ShowPreviewWindow() 공개 메소드

public ShowPreviewWindow ( ) : bool
리턴 bool

ShowVideoFormats() 공개 메소드

public ShowVideoFormats ( ) : void
리턴 void

ShowVideoSourceChoices() 공개 메소드

If the driver supports a dialog box to select the video Source, this method will display it on the screen.
public ShowVideoSourceChoices ( ) : void
리턴 void

StartStreaming() 공개 메소드

public StartStreaming ( ) : bool
리턴 bool

StopStreaming() 공개 메소드

public StopStreaming ( ) : bool
리턴 bool

VfwCameraDevice() 공개 메소드

public VfwCameraDevice ( int width, int height ) : System
width int
height int
리턴 System

VfwCameraDevice() 공개 메소드

public VfwCameraDevice ( int index, int width, int height, int fps, int windowStyle, IntPtr parentWindow ) : System
index int
width int
height int
fps int
windowStyle int
parentWindow System.IntPtr
리턴 System