How to draw shapes on an image? didn't find any updated sample
Kshitij Patil
10/30/2020, 6:35 PM
Is
Canvas
the right answer for this?
Kshitij Patil
10/30/2020, 7:04 PM
@Foso could you please guide me here! I went through Canvas and Box in your documentation and I'm a bit confused here.
I'm actually trying to build something like image-cropper but not exactly for cropping. I'm a bit more concerned about the coordinates.
f
Foso
10/30/2020, 8:01 PM
Hi, are you looking for the clip() modifier?
k
Kshitij Patil
10/30/2020, 8:25 PM
No, I'm working on an UI similar to image-cropper, like a base canvas will be rendered with an image and I've to draw polygon above it with some markers that should be movable. At the end, I've to capture the coordinates of those markers and do further processing.
So, my task involves drawing some paths above an image. What is the recommended Composable for this job?