Public Member Functions | Protected Member Functions | Properties

ZBar.Video Class Reference

Mid-level video source abstraction. captures images from a video device. More...

List of all members.

Public Member Functions

 Video ()
 Create a video instance.
void Open (string device)
 Open and probe a video device.
void Close ()
 Close the video device.
void RequestSize (uint width, uint height)
 Request a other output image size.
Image NextFrame ()
 Retrieve next captured image.
void Dispose ()
 Release resources held by this object.

Protected Member Functions

virtual void Dispose (bool disposing)
 Dispose this object.

Properties

bool Enabled [get, set]
int Width [get]
int Height [get]

Detailed Description

Mid-level video source abstraction. captures images from a video device.

Definition at line 35 of file Video.cs.


Constructor & Destructor Documentation

ZBar.Video.Video (  ) 

Create a video instance.

Definition at line 43 of file Video.cs.


Member Function Documentation

void ZBar.Video.Close (  ) 

Close the video device.

Definition at line 66 of file Video.cs.

virtual void ZBar.Video.Dispose ( bool  disposing  )  [protected, virtual]

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.

Parameters:
disposing A System.Boolean False if called from the finalizer, True if called from Dispose.

Definition at line 158 of file Video.cs.

void ZBar.Video.Dispose (  ) 

Release resources held by this object.

Definition at line 171 of file Video.cs.

Image ZBar.Video.NextFrame (  ) 

Retrieve next captured image.

This method blocks untill an image have been captured.

Returns:
A Image representating the next image captured

Definition at line 134 of file Video.cs.

void ZBar.Video.Open ( string  device  ) 

Open and probe a video device.

Parameters:
device The device specified by platform specific unique name (v4l device node path in *nix eg "/dev/video", DirectShow DevicePath property in windows).

Definition at line 57 of file Video.cs.

void ZBar.Video.RequestSize ( uint  width,
uint  height 
)

Request a other output image size.

The request may be adjusted or completely ignored by the driver.

Parameters:
width Desired output width
height Desired output height

Definition at line 122 of file Video.cs.


Property Documentation

bool ZBar.Video.Enabled [get, set]

Start/stop video capture, must be called after Open()

Definition at line 75 of file Video.cs.

int ZBar.Video.Height [get]

Get output image height

Definition at line 101 of file Video.cs.

int ZBar.Video.Width [get]

Get output handle width

Definition at line 89 of file Video.cs.


The documentation for this class was generated from the following file: