Example #1
0
        /// <summary>
        /// 设置绘图类型(如画线,画矩形等内容)
        /// </summary>
        /// <param name="hPdoHandle">标示句柄</param>
        /// <param name="dwDrawType">搜索行为过滤类型 见E_PDO_DRAW_TYPE</param>
        /// <returns>成功返回PDO_OK,失败返回错误码</returns>
        public UInt32 Pdo_DrawTypeSet(UInt32 hPdoHandle, E_PDO_DRAW_TYPE dwDrawType)
        {
            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, "IVXDrawSDKProtocol Pdo_DrawTypeSet hPdoHandle:" + hPdoHandle + ",dwDrawType:" + dwDrawType);
            UInt32 retVal = IVXDrawSDKProtocol.Pdo_DrawTypeSet(hPdoHandle, (uint)dwDrawType);

            //if (0 != retVal)
            //{
            //    // 调用失败,抛异常
            //    CheckError();
            //}
            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, "IVXDrawSDKProtocol Pdo_DrawTypeSet ret:" + retVal);
            return(retVal);
        }
 public void SetPicDrawTypeRect(E_PDO_DRAW_TYPE type)
 {
     IVXProtocol.Pdo_DrawTypeSet(m_hPdoHandle, type);
 }