I want to add some set of text on Image after capturing from camera and add text left corner. Like below photo is example I have 25 photos of gridlayout,so need to capture image from camera and put text on that image and save it as file and need to send it to server. But didn't have idea to add the text on it... can somebody help me...
I try with Canvas and Paint but it doesn't help me much.
val bitmap = MediaStore.Images.Media.getBitmap(this.contentResolver, fileUri)
val mutableBitmap: Bitmap = bitmap.copy(Bitmap.Config.ARGB_8888, true)
val canvas = Canvas(mutableBitmap);
val paint = Paint();
paint.setColor(Color.WHITE);
paint.setTextSize(10f);
canvas.drawText("Some Text here", 10f, 10f, paint);
imgProfile.draw(canvas)