示例#1
0
        //实时发送文本内容
        public void 实时发送文本内容()
        {
            int          iX       = Convert.ToInt32(ZoneX);
            int          iY       = Convert.ToInt32(ZoneY);
            int          iW       = Convert.ToInt32(ZoneW);
            int          iH       = Convert.ToInt32(ZoneH);
            string       strText  = "实时发送文本测试!";
            User_FontSet FontInfo = new User_FontSet();

            FontInfo.bFontBold      = false;
            FontInfo.bFontItaic     = false;
            FontInfo.bFontUnderline = false;
            FontInfo.colorFont      = 0xFFFF;
            FontInfo.iFontSize      = 12;
            FontInfo.strFontName    = "宋体";
            FontInfo.iAlignStyle    = 0;
            FontInfo.iVAlignerStyle = 0;
            FontInfo.iRowSpace      = 0;
            if (!User_RealtimeSendText(g_iCardNum, iX, iY, iW, iH, strText, ref FontInfo))
            {
                Console.WriteLine("发送实时文本失败!");
            }
            else
            {
                Console.WriteLine("发送实时文本成功!");
            }
        }
示例#2
0
 public static extern Boolean User_RealtimeSendText(int CardNum, int x, int y, int iWidth, int iHeight, string strText, ref User_FontSet pFontInfo);