To make the drawn text clear

Posted by user1758835 on Stack Overflow See other posts from Stack Overflow or by user1758835
Published on 2012-10-31T10:44:14Z Indexed on 2012/10/31 11:00 UTC
Read the original article Hit count: 339

Filed under:
|

I have written the code to draw text on the image and to save the image,But the text which I am drawing is looking blur on the image.What modifications need to do to make it clear,Or if there is any other way to draw text on image in android

Canvas canvas = new Canvas(photo);
                Typeface tf = Typeface.create(topaste, Typeface.BOLD);
                Paint paint = new Paint();
                paint.setStyle(Style.FILL);
                paint.setTypeface(tf);
                paint.setColor(Color.WHITE);

                paint.setStrokeWidth(12); 
                canvas.drawBitmap(photo, 0, 0, paint);
                canvas.drawText(topaste, 15, 120, paint);
                image.setImageBitmap(photo);

© Stack Overflow or respective owner

Related posts about android

Related posts about paint