示例#1
0
        private void DoCapTicket(object obj)
        {
            FaceDetect.DataTickCam data = (FaceDetect.DataTickCam)obj;
            IntPtr bmData = tickCamOper.Click();

            if (bmData == IntPtr.Zero)
            {
                return;
            }
            Bitmap b = new Bitmap(tickCamOper.Width, tickCamOper.Height, tickCamOper.Stride,
                                  PixelFormat.Format24bppRgb, bmData);

            data.bm = b;
        }
示例#2
0
 public bool CapTicket(FaceDetect.DataTickCam data)
 {
     this.Invoke(new MyFuncDelegate1(DoCapTicket), data);
     return(data.bm != null);
 }