C# Class ZBar.ImageScanner

Mostra file Open project: jonasfj/zbar-sharp Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Release resources held by this object

ImageScanner ( ) : System

Create a new ImageScanner

Scan ( System image ) : List

Scan an image for symbols

This method convert the image to the appropriate format, and release the converted image immidiately. While copying all the symbols to a list.

Scan ( Image image ) : int

Scan an image for symbols

Once an image have been scanned the result will be associated with the image. Use image.Symbols to access the symbol list.

SetConfiguration ( SymbolType symbology, Config config, int value ) : void

Set config for indicated symbology (0 for all) to specified value.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Dispose this object

This boolean disposing parameter here ensures that objects with a finalizer is not disposed, this is method is invoked from the finalizer. Do overwrite, and call, this method in base classes if you use any unmanaged resources.

Private Methods

Method Description
zbar_image_scanner_create ( ) : IntPtr
zbar_image_scanner_destroy ( IntPtr scanner ) : void
zbar_image_scanner_enable_cache ( IntPtr scanner, int enable ) : void
zbar_image_scanner_set_config ( IntPtr scanner, int symbology, int config, int val ) : int
zbar_image_scanner_set_data_handler ( IntPtr scanner, zbar_image_data_handler handler, IntPtr userdata ) : zbar_image_data_handler
zbar_scan_image ( IntPtr scanner, IntPtr image ) : int

Method Details

Dispose() public method

Release resources held by this object
public Dispose ( ) : void
return void

Dispose() protected method

Dispose this object
This boolean disposing parameter here ensures that objects with a finalizer is not disposed, this is method is invoked from the finalizer. Do overwrite, and call, this method in base classes if you use any unmanaged resources.
protected Dispose ( bool disposing ) : void
disposing bool /// A False if called from the finalizer, True if called from Dispose. ///
return void

ImageScanner() public method

Create a new ImageScanner
public ImageScanner ( ) : System
return System

Scan() public method

Scan an image for symbols
This method convert the image to the appropriate format, and release the converted image immidiately. While copying all the symbols to a list.
public Scan ( System image ) : List
image System /// A to be scanned for symbols ///
return List

Scan() public method

Scan an image for symbols
Once an image have been scanned the result will be associated with the image. Use image.Symbols to access the symbol list.
public Scan ( Image image ) : int
image Image /// A to be scanned ///
return int

SetConfiguration() public method

Set config for indicated symbology (0 for all) to specified value.
public SetConfiguration ( SymbolType symbology, Config config, int value ) : void
symbology SymbolType
config Config
value int
return void