title: How to set a starting point using path () in onDraw () using canvas..?
body: <p>I am making a app like Drive axle for Auto crop selected <a href="http://developer.android.com/reference/android/graphics/Path.html#Path%28%29" rel="nofollow noreferrer">Path ()</a> using <a href="http://developer.android.com/reference/android/graphics/Paint.html#Paint%28%29" rel="nofollow noreferrer">Paint ()</a> and then i make a this screen..</p>
  
  <p><img src="https://i.stack.imgur.com/NzCHu.png" alt="Change Images"></p>
  
  <p>But my Problem is that my starting point start with 0 position TOP_LEFT_CORNER X AND Y AXIS</p>
  
  <p>USING this x and y coordinates i make a this type of rectangle but i need this type of out put using this coordinates..</p>
  
  <blockquote>
    <p>{"TOP_LEFT_X_AXIS":" 43",
       "TOP_LEFT_y_AXIS":" 278",</p>
    
    <p>"TOP_RIGHT_X_AXIS":"532",
       "TOP_RIGHT_y_AXIS":" 300 "}}</p>
    
    <p>"BOTTOM_RIGHT_X_AXIS":"510",
       "BOTTOM_RIGHT_y_AXIS":" 614",</p>
    
    <p>"BOTTOM_LEFT_X_AXIS":" 45",
       "BOTTOM_LEFT_Y_AXIS":" 597",</p>
  </blockquote>
  
  <p>Need this type of Out Put see this image..</p>
  
  <p><img src="https://i.stack.imgur.com/ir3Ok.png" alt="Change images"></p>
  
  <pre><code>@Override
  protected void onDraw(Canvas canvas) {
      super.onDraw(canvas);
      path = new Path();
  
      path.lineTo(x1, y1);
      path.lineTo(x2, y2);
      path.lineTo(x3, y3);
      path.lineTo(x4, y4);
      canvas.drawPath(path, currentPaint);
  
  }
  </code></pre>
  
  <p><strong>Edit :- 1-1-2014</strong></p>
  
  <p>Now i make rectangle successfully now i want to crop that part of images and set on another image view any idea about this..</p>
  
  <p>Edit :- 1-07-2014</p>
  
  <p>Now i want to draw a circle at corner tell me if you have any idea..</p>
  
  <p><img src="https://i.stack.imgur.com/mmKt8.png" alt="Output"></p>