Beispiel #1
0
        //添加单行文本
        public void 添加单行文本()
        {
            User_SingleText SingleText = new User_SingleText();

            SingleText.BkColor                  = 0;
            SingleText.chContent                = "欢迎使用EQ2008型控制卡动态库!";
            SingleText.PartInfo.iFrameMode      = 0;
            SingleText.PartInfo.iHeight         = 32;
            SingleText.PartInfo.iWidth          = 64;
            SingleText.PartInfo.iX              = 0;
            SingleText.PartInfo.iY              = 0;
            SingleText.FontInfo.bFontBold       = false;
            SingleText.FontInfo.bFontItaic      = false;
            SingleText.FontInfo.bFontUnderline  = false;
            SingleText.FontInfo.colorFont       = 0xFF;
            SingleText.FontInfo.iFontSize       = 16;
            SingleText.PartInfo.FrameColor      = 0xFF;
            SingleText.FontInfo.strFontName     = "宋体";
            SingleText.MoveSet.bClear           = false;
            SingleText.MoveSet.iActionSpeed     = 6;
            SingleText.MoveSet.iActionType      = 2;
            SingleText.MoveSet.iHoldTime        = 20;
            SingleText.MoveSet.iClearActionType = 0;
            SingleText.MoveSet.iClearSpeed      = 0;
            SingleText.MoveSet.iFrameTime       = 20;
            if (-1 == User_AddSingleText(g_iCardNum, ref SingleText, g_iProgramIndex))
            {
                Console.WriteLine("添加单行文本失败!");
            }
            else
            {
                Console.WriteLine("添加单行文本成功!");
            }
        }
Beispiel #2
0
 public static extern int User_AddSingleText(int CardNum, ref User_SingleText pSingleText, int iProgramIndex);