public static class ImagePrintJob.Builder extends PrintJob.Builder
Modifier and Type | Field and Description |
---|---|
protected Bitmap |
bitmap |
protected String |
urlString |
flags, printToAny
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ImagePrintJob.Builder |
bitmap(Bitmap bitmap) |
PrintJob |
build()
Builds an instance.
|
ImagePrintJob.Builder |
maxWidth()
Forces the provided bitmap to be scaled down to the maximum allowed width.
|
ImagePrintJob.Builder |
urlString(String urlString) |
flag, flags, includePrintGroups, printJob, printToAny
public ImagePrintJob.Builder bitmap(Bitmap bitmap)
public ImagePrintJob.Builder urlString(String urlString)
public ImagePrintJob.Builder maxWidth()
bitmap(Bitmap)
method. This method
performs possibly time-consuming calulations so it must be invoked on a background thread.public PrintJob build()
build
in class PrintJob.Builder