Hello i have created a canvas that i stick into an imageview of the size of my layout ! In this canvas i create lines that the end of the first is the begging of the second ! My problem is that when the final line is being created how will i be able to erase parts of this line ?
final Bitmap bmp = Bitmap.createBitmap(layout.getWidth(),layout.getHeight(), Bitmap.Config.ARGB_8888);
final Canvas canvas = new Canvas(bmp);
final Paint textPaint = new Paint();
textPaint.setColor(Color.RED);
textPaint.setStrokeWidth(5);
canvas.drawLine(startx, starty, endx, endy, textPaint);
mView.setImageBitmap(bmp);
thank you :)