title: How to draw on canvas and convert to bitmap?
body: <p>I'm tring to draw some line and shapes on canvas and then convert it to bitmap on ImageView. I'm usin a custom class that extands "View" and on "OnDraw method i'm drawing the lines. here is my code(this class only draw simple lines) :</p>
  
  <pre><code>public class finalDraw extends View {
          public finalDraw(Context context) {
              super(context);
          }
  
          @Override
          protected void onDraw(Canvas canvas) {
              super.onDraw(canvas);
              Paint paint = new Paint();
              paint.setColor(Color.BLUE);
              for (int i = 0; i &lt;100; i++) {
                   canvas.drawLine(xStart * i + 50 , yStart , stopX + 30 , stopY,paint); 
              }
  
              invalidate();
          }
      }
  </code></pre>
  
  <p>How can i get the drawing result and show it on ImageView?
  Thanks!</p>