private void Release() { isResult = m_CArtCam.Close(); isResult = m_CArtCam.Release(); // if(m_Bitmap != null) // { // m_Bitmap.Dispose(); // m_Bitmap = null; // } }
public ErrorCode Close() { ERROR er = ERROR.CAMERA_UNKNOWN; ErrorCode code = new ErrorCode(); code.Clear(); if (IsOpen) { _RightCameraObj.Close(); _LeftCameraObj.Close(); _RightCameraObj.Release(); _LeftCameraObj.Release(); } er = ERROR.CAMERA_NONE; code.ErrorNo = (int)er; code.ErrorStr = er.ToString(); return(code); }