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; }
public bool CapTicket(FaceDetect.DataTickCam data) { this.Invoke(new MyFuncDelegate1(DoCapTicket), data); return(data.bm != null); }