// Detach camera from view public bool DetachCameraViewAnalyzer(VsAppInterface vsApp) { try { vsAnalyserSource.FrameOut1 -= new VsImageEventHandler(vsApp.FrameIn); } catch { return(false); } return(true); }
// Attach channel to view public bool AttachChannelView(VsAppInterface vsApp) { try { this.FrameOut += new VsImageEventHandler(vsApp.FrameIn); } catch { return(false); } return(true); }
// Detach camera from view public bool DetachCameraView(VsAppInterface vsApp) { try { FrameOut -= new VsImageEventHandler(vsApp.FrameIn); } catch { return(false); } return(true); }
// Detach camera from view public bool DetachChannelViewAnalyzer(VsAppInterface vsApp) { try { try { vsAnalyserSource.FrameOut1 -= new VsImageEventHandler(vsApp.FrameIn); } catch { return(false); } } catch (Exception err) { logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace);; } return(true); }
// Detach camera from view public bool DetachChannelViewAnalyzer(VsAppInterface vsApp) { try { try { vsAnalyserSource.FrameOut1 -= new VsImageEventHandler(vsApp.FrameIn); } catch { return false; } } catch (Exception err) { logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace);; } return true; }
// Detach channel from view public bool DetachChannelView(VsAppInterface vsApp) { try { this.FrameOut -= new VsImageEventHandler(vsApp.FrameIn); } catch { return false; } return true; }
// Detach channel from view analyzer public bool DetachChannelViewAnalyzer(String channelName, VsAppInterface vsApp) { try { VsChannel vsChannel = GetChannelByName(channelName); return vsChannel.DetachChannelViewAnalyzer(vsApp); } catch (Exception err) { logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace);; } return false; }
// Detach camera from view analyzer public bool DetachCameraViewAnalyzer(String cameraName, VsAppInterface vsApp) { try { VsCamera vsCam = vsCameras.GetCameraByName(cameraName); return vsCam.DetachCameraViewAnalyzer(vsApp); } catch (Exception err) { logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace);; } return false; }
// Detach camera from view public bool DetachCameraViewAnalyzer(VsAppInterface vsApp) { try { vsAnalyserSource.FrameOut1 -= new VsImageEventHandler(vsApp.FrameIn); } catch { return false; } return true; }
// Attach camera to view public bool AttachCameraView(VsAppInterface vsApp) { try { FrameOut += new VsImageEventHandler(vsApp.FrameIn); } catch { return false; } return true; }