public interface PrintJob
printTextLine(String, String, String, boolean, boolean)
, and
printImage(Bitmap)
repeatedly until everything has been printed.
Complete the print job by calling finish()
.Modifier and Type | Method and Description |
---|---|
PrinterStatus |
finish()
Finishes the print job.
|
int |
getMonospaceWidth() |
int |
getPrintWidth() |
PrinterStatus |
getStatus() |
boolean |
printImage(Bitmap image)
Prints a bitmap.
|
boolean |
printTextLine(java.lang.String left,
java.lang.String center,
java.lang.String right,
boolean monospace,
boolean bold)
Prints one line of text.
|
int getMonospaceWidth()
int getPrintWidth()
PrinterStatus getStatus()
boolean printTextLine(java.lang.String left, java.lang.String center, java.lang.String right, boolean monospace, boolean bold)
left
- Text that should be left-aligned.center
- Text that should be center-aligned.right
- Text that should be right-aligned.monospace
- True if the text should be printed with a monospace font. False
if the text should be printed with a variable-width font.bold
- True if the text should be printed in bold-face.boolean printImage(Bitmap image)
image
- A bitmap to print.PrinterStatus finish()