public void CloseIDS() { if (m_Camera.IsOpened) { m_Camera.EventFrame -= onFrameEvent; m_Camera.Exit(); } }
public void Close() { if (!Camera.IsOpened) { return; } uEye.Defines.Status statusRet; statusRet = Camera.Exit(); if (statusRet != uEye.Defines.Status.Success) { throw new Exception("failed to close camera"); } }