I want to create a Bitmap with some string data on it, and later send it to my mobile printer.
How can we do that?
I want to create a Bitmap with some string data on it, and later send it to my mobile printer.
How can we do that?
try like this:
Bitmap resultBitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(resultBitmap);
Paint paint = new Paint();
paint.setColor(Color.RED);
canvas.drawText("", 10, 10, paint);
//here you can return that bitmap directly