Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to convert a string into Image and print that image in a bluetooth printer in Android
- String cpclConfigLabel = "Purchy No:";
- byte[] configLabel = cpclConfigLabel.getBytes();
- Log.e("Befire Bimta",""+configLabel);
- Bitmap bitmap = BitmapFactory.decodeByteArray(configLabel , 0, configLabel .length);
- View viewToBeConverted;
- // do stuff on the View
- viewToBeConverted.buildDrawingCache(true);
- Bitmap bitmap = widget.getDrawingCache(true);
- viewToBeConverted.destroyDrawingCache();
Add Comment
Please, Sign In to add comment