Forum General

android - Find area of shape drawn using DrawPath() method

gayugokhalegayugokhale INMember ✭✭

I have svg path data and I convert this path data in Android.Graphics.Path and draw shape using canvas.DrawPath() on canvas.

It is drawn perfectly. Now, I want to put button in the center of that shape. And on that button click user will select image and display it in that shape only. Not on whole canvas.

for example, I have data mentioned in this link. I draw triangle(shown in example) on my canvas. And Image that user selects, should be displayed in this triangle only not on canvas.

Can anybody help ?

Sign In or Register to comment.