C# Класс GtkZBar.Scanner

Наследование: Gtk.DrawingArea
Показать файл Открыть проект

Открытые методы

Метод Описание
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