//设置视频参数 public Int32 SetVideoParams(Int32 _iBri, Int32 _iCon, Int32 _iSat, Int32 _iHue) { Int32 iRet = -1; if (m_lHandle != -1) { DefVsClient.PARAM_SET_DATA ParamSetData = new DefVsClient.PARAM_SET_DATA(); DefVsClient.CHANNEL_CONINFOR sChConInfor = GetChConInfor(); ParamSetData.m_sNetLinkInfo = sChConInfor.m_sNetLinkInfo; ParamSetData.m_iChNo = sChConInfor.m_iChNo; ParamSetData.m_iCommand = (Int32)ParamCmdType.cmdViParam; ParamSetData.m_iPriority = 1; byte[] byteArray = new byte[4096]; byteArray[0] = (byte)_iBri; byteArray[1] = (byte)_iCon; byteArray[2] = (byte)_iSat; byteArray[3] = (byte)_iHue; ParamSetData.m_pchParams = byteArray; iRet = VsClientAPI.VSSP_ClientSetDevParam(ref ParamSetData); } return(iRet); }