GetBitMap() public method

capture the next image
public GetBitMap ( ) : IntPtr
return System.IntPtr
Example #1
0
 private static void CamThread()
 {
     cam = new Capture();
     while (connected)
     {
         if (timer.Enabled) bitmap = new System.Drawing.Bitmap(cam.Width, cam.Height, cam.Stride, System.Drawing.Imaging.PixelFormat.Format24bppRgb, cam.GetBitMap());
         Thread.Sleep(1);
     }
 }