use of android.support.v4.print.PrintHelper in project run-wallet-android by runplay.
the class ChooseSeedEditFragment method printImage.
private void printImage(Bitmap bitmap) {
try {
PrintHelper photoPrinter = new PrintHelper(getActivity());
photoPrinter.setScaleMode(PrintHelper.SCALE_MODE_FIT);
photoPrinter.printBitmap("Ink check", bitmap);
} catch (Exception e) {
Snackbar.make(view, getActivity().getString(R.string.print_failed), Snackbar.LENGTH_SHORT).show();
}
}
Aggregations