Esempio n. 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="moniker">Moniker string of capture device to open</param>
 /// <param name="width">capture image width</param>
 /// <param name="height">capture image height</param>
 /// <param name="pixelFormat">pixel format (RGB or RGBA)</param>
 public CaptureDevice(string moniker, int width, int height, PixelFormat pixelFormat)
 {
     _deviceMoniker = moniker;
     _captureGrabber = new CaptureGrabber(width, height, pixelFormat);
     _bitmapBuffer = new byte[width * height * _captureGrabber.PixelSize];
 }
Esempio n. 2
0
 /// <summary>
 /// Dispose instance
 /// </summary>
 public void Dispose()
 {
     Stop();
     _captureGrabber = null;
 }