public class BitmapProcess
extends java.lang.Object
Constructor and Description |
---|
BitmapProcess() |
Modifier and Type | Method and Description |
---|---|
static android.graphics.Bitmap |
compressBmpByPrinterWidth(android.graphics.Bitmap bitmap,
net.posprinter.utils.BitmapProcess.PrinterWidth printerWidth)
Compress the picture according to the width of the printing paper
|
static android.graphics.Bitmap |
compressBmpByYourWidth(android.graphics.Bitmap bitmap,
int w)
Compress the picture according to the width you give.
|
static java.util.List<android.graphics.Bitmap> |
cutBitmap(int h,
android.graphics.Bitmap bitmap)
Cutting picture method, cutting picture with equal height, return to List
|
static android.graphics.Bitmap |
resizeImage(android.graphics.Bitmap bitmap,
int w,
boolean isOriginal)
Compress image width and height
|
static android.graphics.Bitmap |
rotateBmp(android.graphics.Bitmap bitmap,
net.posprinter.utils.BitmapProcess.RotateType rotateType)
Rotate picture
|
public static android.graphics.Bitmap compressBmpByPrinterWidth(android.graphics.Bitmap bitmap, net.posprinter.utils.BitmapProcess.PrinterWidth printerWidth)
bitmap
- printerWidth
- public static android.graphics.Bitmap compressBmpByYourWidth(android.graphics.Bitmap bitmap, int w)
bitmap
- w
- public static android.graphics.Bitmap rotateBmp(android.graphics.Bitmap bitmap, net.posprinter.utils.BitmapProcess.RotateType rotateType)
bitmap
- rotateType
- public static java.util.List<android.graphics.Bitmap> cutBitmap(int h, android.graphics.Bitmap bitmap)
h
- bitmap
- public static android.graphics.Bitmap resizeImage(android.graphics.Bitmap bitmap, int w, boolean isOriginal)
bitmap
- w
- isOriginal
-