示例#1
0
        //向缓冲区输入字符串
        //nOrgx和nOrgy表示绝对打印位置
        public static bool POS_PL_TextOut(String text, int nOrgx, int nOrgy, int nWidthTimes, int nHeightTimes, int nFontStyle)
        {
            byte[][] temp = TEXTANDPIC.TAC_WriteStringToPixel(text, LineSpacing, RightSpacing, LeftPad + PrintAreaWidth - nOrgx);

            byte[][] temptimes = CACULATE.CACU_TimesData(temp, nHeightTimes + 1, nWidthTimes + 1);

            CACULATE.CACU_CopyData(temptimes, nOrgy - LineHeight * (nHeightTimes + 1), nOrgx, PageBuffer);
            return(true);
        }
示例#2
0
 public static bool POS_PreDownloadBmpToRAM(string pszPath, int nID)
 {
     bmpBuffer = TEXTANDPIC.TAC_TurnPicToPixData(pszPath);
     return(true);
 }
示例#3
0
 public static bool POS_PL_DownloadAndPrintBmp(string pszPath, int nOrgx, int nOrgy, int nMode)
 {
     byte[][] temp = TEXTANDPIC.TAC_TurnPicToPixData(pszPath);
     CACULATE.CACU_CopyData(temp, nOrgy - temp.Length, nOrgx, PageBuffer);
     return(true);
 }