How to draw shapes on an image? didn't find any up...
# compose
k
How to draw shapes on an image? didn't find any updated sample
Is
Canvas
the right answer for this?
@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
Hi, are you looking for the clip() modifier?
k
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?
p
Yeah, you have to use Canvas for this
👍 1
k
Okay, thanks!