//初始化绘制资源 private void InitDrawingResource() { int nSize = 0; unsafe { nSize = sizeof(BITMAPINFOHEADER); //memset(&m_bmpInfo, 0, nSize); } m_bmpInfo.biSize = nSize; m_bmpInfo.biPlanes = 1; m_bmpInfo.biBitCount = 24; m_bmpInfo.biCompression = 0; //hDraw = ShowpictureBox.Handle; hMainWin = TUCamera.FindWindow(null, "COVID19_Detection"); m_hDC = TUCamera.GetDC(hDraw); m_hDib = TUCamera.DrawDibOpen(); }