com.gprinter.command

类 GpUtils

  • java.lang.Object
    • com.gprinter.command.GpUtils


  • public class GpUtils
    extends java.lang.Object
    • 字段详细资料

      • PAPER_58_WIDTH

        public static final int PAPER_58_WIDTH
        另请参阅:
        常量字段值
      • PAPER_80_WIDTH

        public static final int PAPER_80_WIDTH
        另请参阅:
        常量字段值
      • theSet1

        static java.lang.Integer[] theSet1
      • theSet2

        static java.lang.Integer[] theSet2
      • ALGORITHM_DITHER_16x16

        public static final int ALGORITHM_DITHER_16x16
        另请参阅:
        常量字段值
      • ALGORITHM_DITHER_8x8

        public static final int ALGORITHM_DITHER_8x8
        另请参阅:
        常量字段值
      • ALGORITHM_TEXTMODE

        public static final int ALGORITHM_TEXTMODE
        另请参阅:
        常量字段值
      • ALGORITHM_GRAYTEXTMODE

        public static final int ALGORITHM_GRAYTEXTMODE
        另请参阅:
        常量字段值
      • COLOR_PALETTE

        public static final int[][] COLOR_PALETTE
      • FLOYD_STEINBERG_DITHER

        public static final int FLOYD_STEINBERG_DITHER
        另请参阅:
        常量字段值
      • ATKINSON_DITHER

        public static final int ATKINSON_DITHER
        另请参阅:
        常量字段值
    • 构造器详细资料

      • GpUtils

        public GpUtils()
    • 方法详细资料

      • resizeImage

        public static Bitmap resizeImage(Bitmap bitmap,
                                         int w,
                                         int h)
      • saveMyBitmap

        public static void saveMyBitmap(Bitmap mBitmap)
      • toGrayscale

        public static Bitmap toGrayscale(Bitmap bmpOriginal)
      • pixToEscRastBitImageCmd

        static byte[] pixToEscRastBitImageCmd(byte[] src,
                                              int nWidth,
                                              int nMode)
      • pixToEscRastBitImageCmd

        public static byte[] pixToEscRastBitImageCmd(byte[] src)
      • pixToEscNvBitImageCmd

        static byte[] pixToEscNvBitImageCmd(byte[] src,
                                            int width,
                                            int height)
      • pixToLabelCmd

        public static byte[] pixToLabelCmd(byte[] src)
      • pixToTscCmd

        public static byte[] pixToTscCmd(int x,
                                         int y,
                                         int mode,
                                         byte[] src,
                                         int nWidth)
      • bitmapToBWPix

        public static byte[] bitmapToBWPix(Bitmap mBitmap)
      • bitmapToBWPix_int

        public static int[] bitmapToBWPix_int(Bitmap mBitmap,
                                              int algorithm)
      • toBinaryImage

        public static Bitmap toBinaryImage(Bitmap mBitmap,
                                           int nWidth,
                                           int algorithm)
      • clamp

        public static int clamp(int value)
      • filter

        public static Bitmap filter(Bitmap nbm,
                                    int width,
                                    int height)
      • printEscDraw

        public static byte[] printEscDraw(Bitmap bitmap)
      • ZlibpixToLabelCmd

        public static byte[] ZlibpixToLabelCmd(byte[] src)
      • printZlibTscDraw

        public static byte[] printZlibTscDraw(Bitmap bitmap)
      • splitArabic

        static java.lang.String splitArabic(java.lang.String input)
      • addSpaceAfterArabicString

        static java.lang.String addSpaceAfterArabicString(java.lang.String arabic,
                                                          int number)
      • reverseLetterAndNumber

        static java.lang.String reverseLetterAndNumber(java.lang.String input)
        反转字母和数字
        参数:
        input -
        返回:
      • string2Cp864

        static byte[] string2Cp864(java.lang.String arabicString)
      • integer2Character

        static char[] integer2Character(java.lang.Integer[] integers)
      • copy

        static void copy(char[] array,
                         java.lang.Integer[] originUnicode,
                         int length)
      • Hyphen

        static java.util.List<java.lang.IntegerHyphen(java.util.List<java.lang.Integerlist)
      • Deformation

        static java.util.List<java.lang.IntegerDeformation(java.util.List<java.lang.Integerinputlist)
      • compare

        static boolean compare(java.lang.Integer input,
                               int i)
      • findInArray

        static boolean findInArray(java.lang.Integer[] integer,
                                   int input)
      • Flag

        static int Flag(boolean set1,
                        boolean set2)
      • setPaperWidth

        public static void setPaperWidth(int paperWidth)
      • ByteTo_byte

        public static byte[] ByteTo_byte(java.util.Vector<java.lang.Bytevector)
      • getMethod

        public int getMethod()
      • setMethod

        public static void setMethod(int method)
文档更新时间: 2020-04-27 13:23   作者:Gainscha佳博