Android Question how to find position of line draw by canvas

tufanv

Expert
Licensed User
Longtime User
Hello,

Lets say i have draw a line with canvas. Later on i need to find the lines top left right and bottom of this line via code. How can a find it ?

Thank you.
 

Troberg

Well-Known Member
Licensed User
Longtime User
You'll have to remember it in your code, for example storing the lines in a list, map or array. The canvas does not remember it for you, it merely paints some pixels on the screen and that's it.
 
Upvote 0
Top