2

I am developing an app , in which i want to make diff shapes like arrow,rectangles, lines, free draw etc dynamically on finger touch, i am able to draw line, free draw, rectangles but i am not getting the arrow.i also search a lot on google but didn't find anythng relevant.Please suggest if someone has a solution.

neha neema
  • 79
  • 2
  • 7

1 Answers1

2

Create a path object in an arrow shape using the moveTo, and lineTo methods.

Samuel
  • 16,923
  • 6
  • 62
  • 75
  • @nehaneema Imran Rana already commented with a great link that tells you how to use a Path. You can apply the same logic to draw the rest of the arrow. – Samuel Sep 14 '12 at 17:11
  • I used the following code it makes the arrow in correct form only when i make from top to bottom, or functionally i can say only when mX > mY.i dont understand how to tackle it.. – neha neema Sep 15 '12 at 07:36