C# Class LitDev.LDWebCam

Afficher le fichier Open project: litdev1/LitDev

Méthodes publiques

Свойство Type Description
bitmap System.Drawing.Bitmap
cam LitDev.Engines.Capture
dImg System.Drawing.Image
pEffect Primitive[]

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

End() public static méthode

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

Pause() public static méthode

Pause the webcam updates.
public static Pause ( ) : void
Résultat void

ResizeAbort() public static méthode

public static ResizeAbort ( ) : bool
Résultat bool

Resume() public static méthode

Resume the webcam updates.
public static Resume ( ) : void
Résultat void

Snapshot() public static méthode

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

SnapshotToFile() public static méthode

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

SnapshotToImageList() public static méthode

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

Start() public static méthode

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.
Résultat Primitive

Property Details

bitmap public_oe static_oe property

public static System.Drawing.Bitmap bitmap
Résultat System.Drawing.Bitmap

cam public_oe static_oe property

public static Capture,LitDev.Engines cam
Résultat LitDev.Engines.Capture

dImg public_oe static_oe property

public static System.Drawing.Image dImg
Résultat System.Drawing.Image

pEffect public_oe static_oe property

public static Primitive[] pEffect
Résultat Primitive[]