C# Class LitDev.LDWebCam

Show file Open project: litdev1/LitDev

Public Properties

Property Type Description
bitmap System.Drawing.Bitmap
cam LitDev.Engines.Capture
dImg System.Drawing.Image
pEffect Primitive[]

Public Methods

Method Description
DoEffect ( System _dImg, eEffect _effect, Primitive parameter ) : System.Drawing.Image
End ( ) : void

End the webcam display, call this before removing the webcam shape.

Pause ( ) : void

Pause the webcam updates.

ResizeAbort ( ) : bool
Resume ( ) : void

Resume the webcam updates.

Snapshot ( ) : void

Take a snapshot and save it as a jpg with a SaveAs dialog.

SnapshotToFile ( Primitive fileName ) : void

Take a snapshot and save it to a file.

SnapshotToImageList ( ) : Primitive

Take a snapshot and save it to the ImageList (memory loaded image).

Start ( Primitive width, Primitive height ) : Primitive

Start a webcam display object (SmallBasic shape). If this is called more than once, multiple copies af the same webcam image are be generated. This object can be moved, zommed, rotated etc using the standard Shapes methods. Maximum resolution usually at 640 x 480 pixels, smaller may be faster.

Private Methods

Method Description
CamThread ( ) : void
Connect ( ) : void
Disconnect ( ) : void
SendMessage ( IntPtr hWnd, UInt32 Msg, Int32 wParam, Int32 lParam ) : IntPtr
TakeSnapshot ( string fileName ) : string
UpdateImage ( ) : void
UpdateImage_Delegate ( ) : void
calc_shift ( double x1, double x2, double cx, double k ) : double
capCreateCaptureWindowA ( string lpszWindowName, int dwStyle, int X, int Y, int nWidth, int nHeight, IntPtr hwndParent, int nID ) : IntPtr
getRadialX ( double x, double y, double cx, double cy, double k ) : double
getRadialY ( double x, double y, double cx, double cy, double k ) : double
timer_Tick ( object sender, EventArgs e ) : void

Method Details

DoEffect() public static method

public static DoEffect ( System _dImg, eEffect _effect, Primitive parameter ) : System.Drawing.Image
_dImg System
_effect eEffect
parameter Primitive
return System.Drawing.Image

End() public static method

End the webcam display, call this before removing the webcam shape.
public static End ( ) : void
return void

Pause() public static method

Pause the webcam updates.
public static Pause ( ) : void
return void

ResizeAbort() public static method

public static ResizeAbort ( ) : bool
return bool

Resume() public static method

Resume the webcam updates.
public static Resume ( ) : void
return void

Snapshot() public static method

Take a snapshot and save it as a jpg with a SaveAs dialog.
public static Snapshot ( ) : void
return void

SnapshotToFile() public static method

Take a snapshot and save it to a file.
public static SnapshotToFile ( Primitive fileName ) : void
fileName Primitive File to save jpg snapshot to.
return void

SnapshotToImageList() public static method

Take a snapshot and save it to the ImageList (memory loaded image).
public static SnapshotToImageList ( ) : Primitive
return Primitive

Start() public static method

Start a webcam display object (SmallBasic shape). If this is called more than once, multiple copies af the same webcam image are be generated. This object can be moved, zommed, rotated etc using the standard Shapes methods. Maximum resolution usually at 640 x 480 pixels, smaller may be faster.
public static Start ( Primitive width, Primitive height ) : Primitive
width Primitive The width of the webcam display object.
height Primitive The height of the webcam display object.
return Primitive

Property Details

bitmap public static property

public static System.Drawing.Bitmap bitmap
return System.Drawing.Bitmap

cam public static property

public static Capture,LitDev.Engines cam
return LitDev.Engines.Capture

dImg public static property

public static System.Drawing.Image dImg
return System.Drawing.Image

pEffect public static property

public static Primitive[] pEffect
return Primitive[]