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
Post a Comment