Methods Summary |
---|
public int | getColorMode()Gets the color mode with which the image will be printed.
return mImpl.getColorMode();
|
public int | getOrientation()Gets whether the image will be printed in landscape or portrait.
return mImpl.getOrientation();
|
public int | getScaleMode()Returns the scale mode with which the image will fill the paper.
return mImpl.getScaleMode();
|
public void | printBitmap(java.lang.String jobName, android.graphics.Bitmap bitmap, android.support.v4.print.PrintHelper$OnPrintFinishCallback callback)Prints a bitmap.
mImpl.printBitmap(jobName, bitmap, callback);
|
public void | printBitmap(java.lang.String jobName, android.net.Uri imageFile)Prints an image located at the Uri. Image types supported are those of
{@link android.graphics.BitmapFactory#decodeStream(java.io.InputStream)
android.graphics.BitmapFactory.decodeStream(java.io.InputStream)}
mImpl.printBitmap(jobName, imageFile, null);
|
public void | printBitmap(java.lang.String jobName, android.net.Uri imageFile, android.support.v4.print.PrintHelper$OnPrintFinishCallback callback)Prints an image located at the Uri. Image types supported are those of
{@link android.graphics.BitmapFactory#decodeStream(java.io.InputStream)
android.graphics.BitmapFactory.decodeStream(java.io.InputStream)}
mImpl.printBitmap(jobName, imageFile, callback);
|
public void | printBitmap(java.lang.String jobName, android.graphics.Bitmap bitmap)Prints a bitmap.
mImpl.printBitmap(jobName, bitmap, null);
|
public void | setColorMode(int colorMode)Sets whether the image will be printed in color (default)
{@link #COLOR_MODE_COLOR} or in back and white
{@link #COLOR_MODE_MONOCHROME}.
mImpl.setColorMode(colorMode);
|
public void | setOrientation(int orientation)Sets whether the image will be printed in landscape {@link #ORIENTATION_LANDSCAPE} (default)
or portrait {@link #ORIENTATION_PORTRAIT}.
mImpl.setOrientation(orientation);
|
public void | setScaleMode(int scaleMode)Selects whether the image will fill the paper and be cropped
{@link #SCALE_MODE_FIT}
or whether the image will be scaled but leave white space
{@link #SCALE_MODE_FILL}.
mImpl.setScaleMode(scaleMode);
|
public static boolean | systemSupportsPrint()Gets whether the system supports printing.
if (Build.VERSION.SDK_INT >= 19) {
// Supported on Android 4.4 or later.
return true;
}
return false;
|