private void UpdateScreenImage(Bitmap hBitmap) { if (hBitmap is null) { throw new ArgumentNullException(nameof(hBitmap)); } // Do not change the state control during application closing. if (m_bExit) { return; } //if (PictureFingerPrint.InvokeRequired) //{ SetImageCallback d = new SetImageCallback(this.UpdateScreenImage); d.Invoke(hBitmap); // this.Invoke(d, new object[] { hBitmap }); //} //else //{ // PictureFingerPrint.Image = hBitmap; //} }