Skip to content Skip to sidebar Skip to footer

Text To Image Conversion

i just succeeded in calling a line of text from a text file in th sdcard and got it to display the text out on the application via textview, is there anyway where i could read the

Solution 1:

You can create a bitmap manually and draw text into it using the Paint and Canvas classes

Something like this:

Bitmapbitmap= Bitmap.createBitmap(30, 30, Bitmap.Config.ARGB_8888);
Paintpaint=newPaint();
Canvascanvas=newCanvas(bitmap);
canvas.drawText("TEXT", 0, 0, paint);

Post a Comment for "Text To Image Conversion"