title: Clear Specific Area Of Canvas - Android
body: <p>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 ?</p>
  
  <pre><code>    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);
  </code></pre>
  
  <p>thank you :)</p>