How can I inscribe line into oval using Canvas and Paint in Android?
UPDT:
I need something like that:
Thanks
How can I inscribe line into oval using Canvas and Paint in Android?
UPDT:
I need something like that:
Thanks
I don't believe you can inscribe a line into an oval with the methods available in the Canvas
class. As for as my experience goes, you can only render straight lines. However you can draw oval with the Canvas
class. I'm not sure what your primary goal is, but you might want to look up some Graphic libraries, that might over something like this.
Update:
Based on your provided image, I believe this is possible. You just need to find the two coordinates of the line: starting coordinate and Ending coordinate.
Once you have done this, render the oval shape then render the line based on the two coordinates.
I hope this helps.
Try drawing the line with and oval mask. u can rotate the canvas all you want to get the effects u need.