public bool LoadDDT(GroupSDK.OUTPUT_PARAM param, [MarshalAs(UnmanagedType.LPWStr)] string sFileName, GroupSDK.DelegateNewFrame funcFrame, IntPtr pUserData) { if (!GroupSDK.MAG_IsProcessingImage(m_intChannelIndex)) { if (!GroupSDK.MAG_LoadDDT(m_intChannelIndex, ref param, sFileName, funcFrame, pUserData)) { return(false); } GroupSDK.MAG_GetCamInfo(m_intChannelIndex, ref m_CamInfo, Marshal.SizeOf(typeof(GroupSDK.CAMERA_INFO))); return(true); } return(false); }
public bool LoadBufferedDDT(GroupSDK.OUTPUT_PARAM param, IntPtr pBuffer, uint size, GroupSDK.DelegateNewFrame funcFrame, IntPtr pUserData) { if (!GroupSDK.MAG_IsProcessingImage(m_intChannelIndex)) { if (!GroupSDK.MAG_LoadBufferedDDT(m_intChannelIndex, ref param, pBuffer, size, funcFrame, pUserData)) { return(false); } GroupSDK.MAG_GetCamInfo(m_intChannelIndex, ref m_CamInfo, Marshal.SizeOf(typeof(GroupSDK.CAMERA_INFO))); return(true); } return(true); }
public bool Play() { GroupSDK.CAMERA_INFO cam_info = _MagDevice.GetCamInfo(); GroupSDK.OUTPUT_PARAM param = new GroupSDK.OUTPUT_PARAM(); param.intFPAWidth = (uint)cam_info.intFPAWidth; param.intFPAHeight = (uint)cam_info.intFPAHeight; param.intBMPWidth = (uint)cam_info.intVideoWidth; param.intBMPHeight = (uint)cam_info.intVideoHeight; param.intColorbarWidth = 20; param.intColorbarHeight = 100; if (_MagDevice.StartProcessImage(param, NewFrame, (uint)GroupSDK.STREAM_TYPE.STREAM_TEMPERATURE, 0)) { _MagDevice.SetColorPalette(GroupSDK.COLOR_PALETTE.IRONBOW); return(true); } return(false); }
/// <summary> /// 启动设备 /// </summary> /// <returns>是否成功</returns> private Boolean Start() { GroupSDK.CAMERA_INFO info = mMagDevice.GetCamInfo(); GroupSDK.OUTPUT_PARAM param = new GroupSDK.OUTPUT_PARAM(); param.intFPAWidth = (UInt32)info.intFPAWidth; param.intFPAHeight = (UInt32)info.intFPAHeight; param.intBMPWidth = (UInt32)info.intVideoWidth; param.intBMPHeight = (UInt32)info.intVideoHeight; param.intColorbarWidth = 20; param.intColorbarHeight = 100; mMagDevice.AutoFocus(); if (!mMagDevice.StartProcessImage(param, mOnNewFrame, (UInt32)GroupSDK.STREAM_TYPE.STREAM_TEMPERATURE, IntPtr.Zero)) { return(false); } mMagDevice.SetColorPalette(GroupSDK.COLOR_PALETTE.IRONBOW); return(true); }
public bool StartProcessPulseImage(GroupSDK.OUTPUT_PARAM param, GroupSDK.DelegateNewFrame funcFrame, uint dwStreamType, uint dwUserData) { return(GroupSDK.MAG_StartProcessPulseImage(m_intChannelIndex, ref param, funcFrame, dwStreamType, dwUserData)); }