PrinterCommand class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
arraycopy(List src, int srcPos, List dest, int destPos, int length)
→ void
-
-
getBarCommand(String str, int nVersion, int nErrorCorrectionLevel, int nMagnification)
→ Uint8List?
-
Two-dimensional code print function
@param str 打印二维码数据
@param nVersion 二维码类型
@param nErrorCorrectionLevel 纠错级别
@param nMagnification 放大倍数
@return
-
getCodeBarCommand(String str, int nType, int nWidthX, int nHeight, int nHriFontType, int nHriFontPosition)
→ Uint8List?
-
打印一维条码
@param str 打印条码字符
@param nType 条码类型(65~73)
@param nWidthX 条码宽度
@param nHeight 条码高度
@param nHriFontType HRI字型
@param nHriFontPosition HRI位置
@return
-
posAlign(int align)
→ Uint8List?
-
设置对齐模式
@param align
@return
-
posPrintText(String pszString, {int nWidthTimes = 0, int nHeightTimes = 0, int codepage = 0, int nFontType = 0, PosAlign align = PosAlign.left})
→ Uint8List?
-
打印文本文档
@param pszString 要打印的字符串
@param codepage 设置代码页(0--255)
@param nWidthTimes 倍宽(0--4)
@param nHeightTimes 倍高(0--4)
@param nFontType 字体类型(只对Ascii码有效)(0,1 48,49)
-
posPrintTextLn(String pszString, {int nWidthTimes = 0, int nHeightTimes = 0, int codepage = 0, int nFontType = 0, PosAlign align = PosAlign.left})
→ Uint8List?
-
打印文本文档
@param pszString 要打印的字符串
@param codepage 设置代码页(0--255)
@param nWidthTimes 倍宽(0--4)
@param nHeightTimes 倍高(0--4)
@param nFontType 字体类型(只对Ascii码有效)(0,1 48,49)
-
posSAlign(PosAlign align)
→ Uint8List?
-
设置对齐模式
@param align
@return
-
posSetAbsolute(int absolute)
→ Uint8List?
-
设置绝对打印位置
@param absolute
@return
-
posSetBeep(int m, int t)
→ Uint8List?
-
蜂鸣指令
@param m 蜂鸣次数
@param t 每次蜂鸣的时间
@return
-
posSetBold(int bold)
→ Uint8List?
-
加粗指令(最低位为1有效)
@param bold
@return
-
posSetCashBox(int nMode, int nTime1, int nTime2)
→ Uint8List?
-
钱箱指令
@param nMode
@param nTime1
@param nTime2
@return
-
posSetChoseFont(int font)
→ Uint8List?
-
选择字体字型
@param font
@return
-
posSetCodePage(int page)
→ Uint8List?
-
选择字符代码页
@param page
@return
-
posSetCut(int cut)
→ Uint8List?
-
Cutter instructions (paper to cutter position and cut)
@param cut 0~255
@return
-
posSetDefLineSpace()
→ Uint8List?
-
设置默认行间距
@return
-
posSetFont(String str, int bold, int font, int widthsize, int heigthsize)
→ Uint8List?
-
设置打印模式(选择字体(font:A font:B),加粗,字体倍高倍宽(最大4倍高宽))
@param str 打印的字符串
@param bold 加粗
@param font 选择字型
@param widthsize 倍宽
@param heigthsize 倍高
@return
-
posSetFontSize(int size1, int size2)
→ Uint8List?
-
选择字体大小(倍高倍宽)
@param size1
@param size2
@return
-
posSetInverse(int inverse)
→ Uint8List?
-
设置反显打印
@param inverse
@return
-
posSetLeftBrace(int brace)
→ Uint8List?
-
设置倒置打印模式(当最低位为1时有效)
@param brace
@return
-
posSetLeftSp(int left)
→ Uint8List?
-
设置左边距
@param left
@return
-
posSetLF()
→ Uint8List?
-
打印并换行
@return
-
posSetLineSpace(int space)
→ Uint8List?
-
设置行间距
@param space
@return
-
posSetPrintInit()
→ Uint8List?
-
The printer is initialized
@return
-
posSetPrintWidth(int width)
→ Uint8List?
-
设置打印区域宽度
@param width
@return
-
posSetPrtAndFeedPaper(int feed)
→ Uint8List?
-
Print and take paper (0~255)
@param feed
@return
-
posSetRelative(int relative)
→ Uint8List?
-
设置相对打印位置
@param relative
@return
-
posSetRotate(int rotate)
→ Uint8List?
-
设置旋转90度打印
@param rotate
@return
-
posSetSelfTest()
→ Uint8List?
-
打印自检页
@return
-
posSetUnderline(int line)
→ Uint8List?
-
设置下划线
@param line
@return