public class TiDotMatrix extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ASC12
ASC12, 8*12 dots
|
static int |
ASC16
ASC16, 8*16 dots
|
static int |
ASC24
ASC24, 8*24 dots
|
static int |
ASC32
ASC32, 16*32 dots
|
static int |
ASC48
ASC48, 24*48 dots
|
Constructor and Description |
---|
TiDotMatrix(int font)
initialization
|
Modifier and Type | Method and Description |
---|---|
byte[][] |
convert(String text)
Convert text string to dot matrix array
|
int |
getHDotNum()
Gets the number of horizontal dot
|
int |
getVDotNum()
Gets the number of vertically dot
|
public static final int ASC12
public static final int ASC16
public static final int ASC24
public static final int ASC32
public static final int ASC48
public TiDotMatrix(int font)
font
- font typepublic byte[][] convert(String text) throws IOException
text
- text string[IN]IOException
- If an I/O error occurspublic int getHDotNum()
public int getVDotNum()