public class BitmapSetting
extends java.lang.Object
Constructor and Description |
---|
BitmapSetting() |
Modifier and Type | Method and Description |
---|---|
int |
getBimtapLimitWidth() |
BitmapLimitSizeBean |
getBitmapLimitSizeBean() |
BmpPrintMode |
getBmpPrintMode() |
Position |
getPrintPostion() |
void |
setBimtapLimitWidth(int bimtapLimitWidth)
设置图片打印限制宽度(N mm * 8)
Bitmap Limit Width setting(N mm * 8) |
void |
setBitmapLimitSizeBean(BitmapLimitSizeBean bitmapLimitSizeBean)
Deprecated.
|
void |
setBmpPrintMode(BmpPrintMode bmpPrintMode)
For ESC,TSC
Bitmap print mode settings 图片打印模式 |
void |
setPrintPostion(Position printPostion)
For Tsc, Cpcl
Bitmap position setting[Position Object], Default: x=0, y=0 图片打印位置设置,通过Position对象,默认位置:x=0,y=0 |
public Position getPrintPostion()
public void setPrintPostion(@NonNull Position printPostion)
printPostion
- public BitmapLimitSizeBean getBitmapLimitSizeBean()
@Deprecated public void setBitmapLimitSizeBean(BitmapLimitSizeBean bitmapLimitSizeBean)
bitmapLimitSizeBean
- 图片限制尺寸对象 bitmapLimitSizeBean.limitWidth, bitmapLimitSizeBean.limitHeight
如果设置为null,则使用原图片的尺寸大小打印public int getBimtapLimitWidth()
public void setBimtapLimitWidth(int bimtapLimitWidth)
bimtapLimitWidth
- public BmpPrintMode getBmpPrintMode()
public void setBmpPrintMode(BmpPrintMode bmpPrintMode)
bmpPrintMode
- BmpPrintMode.MODE_SINGLE_COLOR, BmpPrintMode.MODE_MULTI_COLOR[Default]