Package | Description |
---|---|
net.xprinter.utils |
Modifier and Type | Method and Description |
---|---|
static BitmapToByteData.BmpType |
BitmapToByteData.BmpType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BitmapToByteData.BmpType[] |
BitmapToByteData.BmpType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
DataForSendToPrinterTSC.bitmap(int x,
int y,
int mode,
android.graphics.Bitmap bitmap,
BitmapToByteData.BmpType bmpType)
This command draws bitmap images (as opposed to BMP graphic files).
|
static byte[] |
DataForSendToPrinterPos80.definedDownLoadBmp(android.graphics.Bitmap bitmap,
BitmapToByteData.BmpType bmpType)
defined downLoad bitmap
GS x y [ d1...d(xy*8)]
single bitmap £ºn=(width+7)/8;h=(height+7)/8;n*h<=912,1<=n<=255,1<=h<=48,or else return new byte[0].
|
static byte[] |
DataForSendToPrinterPos58.definedDownLoadBmp(android.graphics.Bitmap bitmap,
BitmapToByteData.BmpType bmpType)
defined downLoad bitmap
GS x y [ d1...d(xy*8)]
single bitmap £ºn=(width+7)/8;h=(height+7)/8;n*h<=912,1<=n<=255,1<=h<=48,or else return new byte[0].
|
static byte[] |
DataForSendToPrinterPos80.definedFlashBmp(java.util.List<android.graphics.Bitmap> list,
int n,
BitmapToByteData.BmpType bmpType)
defined Flash bitmap
FS q n [xL xH yL yH d1...dk]...[xL xH yL yH d1...dk]
The maximum FLASH of storage space for 8KB£¬[xL xH yL yH d1...dk]...[xL xH yL yH d1...dk] The sum of not more than8096
single bitmap£ºn=(width+7)/8;h=(height+7)/8;n*h<=1023,1<=n<=1023,1<=h<=288,or return new byte[0].
|
static byte[] |
DataForSendToPrinterPos58.definedFlashBmp(java.util.List<android.graphics.Bitmap> list,
int n,
BitmapToByteData.BmpType bmpType)
defined Flash bitmap
FS q n [xL xH yL yH d1...dk]...[xL xH yL yH d1...dk]
The maximum FLASH of storage space for 8KB£¬[xL xH yL yH d1...dk]...[xL xH yL yH d1...dk] The sum of not more than8096
single bitmap£ºn=(width+7)/8;h=(height+7)/8;n*h<=1023,1<=n<=1023,1<=h<=288,or return new byte[0].
|
static byte[] |
DataForSendToPrinterTSC.downLoad(java.lang.String filename,
android.graphics.Bitmap bitmap,
BitmapToByteData.BmpType bmpType)
Download image
DOWNLOAD ¡±FILENAME.PCX¡± ,FILE SIZE,DATA¡¡CONTENT...
|
static byte[] |
BitmapToByteData.downLoadBmpToSendData(android.graphics.Bitmap mBitmap,
BitmapToByteData.BmpType bmpType)
Convert bitmap into byte [] and can be sent directly to the printer, and it is only a static method in this class
For the use of definition download bitmaps instruction
|
static byte[] |
BitmapToByteData.downLoadBmpToSendTSCData(android.graphics.Bitmap mBitmap,
BitmapToByteData.BmpType bmpType)
Convert bitmap into byte [] and can be sent directly to the printer, and it is only a static method in this class
provide TSC to dowload bitmap date for send
|
static byte[] |
BitmapToByteData.flashBmpToSendData(android.graphics.Bitmap mBitmap,
BitmapToByteData.BmpType bmpType)
Convert bitmap into byte [] and can be sent directly to the printer, and it is only a static method in this class
provide to dowload Flash bitmap
|
static byte[] |
DataForSendToPrinterPos80.printRasterBmp(int m,
android.graphics.Bitmap bitmap,
BitmapToByteData.BmpType bmpType)
print raster bitmap
GS v 0 m
|
static byte[] |
DataForSendToPrinterPos58.printRasterBmp(int m,
android.graphics.Bitmap bitmap,
BitmapToByteData.BmpType bmpType)
print raster bitmap
GS v 0 m
|
static byte[] |
BitmapToByteData.rasterBmpToSendData(int m,
android.graphics.Bitmap mBitmap,
BitmapToByteData.BmpType bmpType)
Convert bitmap into byte [] and can be sent directly to the printer, and it is only a static method in this class
provide to printer to printe the raster bitmap
|