C# Класс LitDev.LDWebCam

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
bitmap System.Drawing.Bitmap
cam LitDev.Engines.Capture
dImg System.Drawing.Image
pEffect Primitive[]

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

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

Приватные методы

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

Описание методов

DoEffect() публичный статический Метод

public static DoEffect ( System _dImg, eEffect _effect, Primitive parameter ) : System.Drawing.Image
_dImg System
_effect eEffect
parameter Primitive
Результат System.Drawing.Image

End() публичный статический Метод

End the webcam display, call this before removing the webcam shape.
public static End ( ) : void
Результат void

Pause() публичный статический Метод

Pause the webcam updates.
public static Pause ( ) : void
Результат void

ResizeAbort() публичный статический Метод

public static ResizeAbort ( ) : bool
Результат bool

Resume() публичный статический Метод

Resume the webcam updates.
public static Resume ( ) : void
Результат void

Snapshot() публичный статический Метод

Take a snapshot and save it as a jpg with a SaveAs dialog.
public static Snapshot ( ) : void
Результат void

SnapshotToFile() публичный статический Метод

Take a snapshot and save it to a file.
public static SnapshotToFile ( Primitive fileName ) : void
fileName Primitive File to save jpg snapshot to.
Результат void

SnapshotToImageList() публичный статический Метод

Take a snapshot and save it to the ImageList (memory loaded image).
public static SnapshotToImageList ( ) : Primitive
Результат Primitive

Start() публичный статический Метод

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.
Результат Primitive

Описание свойств

bitmap публичное статическое свойство

public static System.Drawing.Bitmap bitmap
Результат System.Drawing.Bitmap

cam публичное статическое свойство

public static Capture,LitDev.Engines cam
Результат LitDev.Engines.Capture

dImg публичное статическое свойство

public static System.Drawing.Image dImg
Результат System.Drawing.Image

pEffect публичное статическое свойство

public static Primitive[] pEffect
Результат Primitive[]