C# 클래스 GtkZBar.Scanner

상속: Gtk.DrawingArea
파일 보기 프로젝트 열기: jonasfj/zbar-sharp

공개 메소드들

메소드 설명
Close ( ) : void
ListVideoSources ( ) : string>.IDictionary

List potential video sources on the system

This just adds a default device without checking it's existance on Windows. On Linux this list all /dev/video* devices, and attempts to get their name using /lib/udev/v4l_id, watch the kernel source (link available in source comments) to that this remains compatible. Alternately, define UDEV_RULES and the "/dev/v4l/by-id/" symlinks will be used to find the names. Note this presumably depends on Ubuntu 9.10 udev rules. Thus the other approach is preffered. Note that on Linux this might be solve a lot better using HAL over dbus, however, last I checked HAL is being replaced by DeviceKit which isn't done yet, so unless the APIs are expected to remain stable HAL is a waste of time.

Open ( string device ) : void

Open a video device

ResetLastItemScanned ( ) : void

Resets the last item scanned

This method may only be called from UI-thread.

Scanner ( ) : System

보호된 메소드들

메소드 설명
OnExposeEvent ( Gdk ev ) : bool
OnSizeAllocated ( Gdk allocation ) : void
OnSizeRequested ( Gtk &requisition ) : void

비공개 메소드들

메소드 설명
CaptureVideo ( Video video, ImageScanner scanner ) : void

Capture and scan images

This method will also flip the images so that they need not be flipped when drawing.

HandleDestroyed ( object sender, EventArgs e ) : void
ProcessVideo ( ) : void

Process video, the worker thread

ThreadSafeRedraw ( ) : void

Simple threadsafe redraw method

메소드 상세

Close() 공개 메소드

public Close ( ) : void
리턴 void

ListVideoSources() 공개 정적인 메소드

List potential video sources on the system
This just adds a default device without checking it's existance on Windows. On Linux this list all /dev/video* devices, and attempts to get their name using /lib/udev/v4l_id, watch the kernel source (link available in source comments) to that this remains compatible. Alternately, define UDEV_RULES and the "/dev/v4l/by-id/" symlinks will be used to find the names. Note this presumably depends on Ubuntu 9.10 udev rules. Thus the other approach is preffered. Note that on Linux this might be solve a lot better using HAL over dbus, however, last I checked HAL is being replaced by DeviceKit which isn't done yet, so unless the APIs are expected to remain stable HAL is a waste of time.
public static ListVideoSources ( ) : string>.IDictionary
리턴 string>.IDictionary

OnExposeEvent() 보호된 메소드

protected OnExposeEvent ( Gdk ev ) : bool
ev Gdk
리턴 bool

OnSizeAllocated() 보호된 메소드

protected OnSizeAllocated ( Gdk allocation ) : void
allocation Gdk
리턴 void

OnSizeRequested() 보호된 메소드

protected OnSizeRequested ( Gtk &requisition ) : void
requisition Gtk
리턴 void

Open() 공개 메소드

Open a video device
public Open ( string device ) : void
device string /// Video device to open ///
리턴 void

ResetLastItemScanned() 공개 메소드

Resets the last item scanned
This method may only be called from UI-thread.
public ResetLastItemScanned ( ) : void
리턴 void

Scanner() 공개 메소드

public Scanner ( ) : System
리턴 System