Android: Can we create bitmaps with Strings on it on the application runtime? -


i want create bitmap string data on it, , later send mobile printer.

how can that?

try 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 can return bitmap directly 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -