flutter-custom-image-crop icon indicating copy to clipboard operation
flutter-custom-image-crop copied to clipboard

[Feature request] create tool to generate Custom paths.

Open sikandernoori opened this issue 2 years ago • 3 comments

Core concept is to generate Path based on Custom shapes, Alphabets, numbers, Tree, logo etc.

Sample: https://www.mockofun.com/wp-content/uploads/2019/12/crop-pictures-into-shapes.jpg

sikandernoori avatar Aug 10 '23 09:08 sikandernoori

I think this might be a bit much for this package to create a tool for those type of shapes 😅.

That being said, you might be able to create a similar effect based on a mask 🤔 What you would do is first draw the mask (any image), then draw the to-crop image and use Paint()..blendMode = BlendMode.srcIn which should then only draw where the mask has pixels. Feel free to experiment with it and create a PR for this 🙂. I don't have much time for this atm, but if there are more poeple that need this I can look at it.

ikbendewilliam avatar Aug 10 '23 13:08 ikbendewilliam

Thanks for suggestions, not a requirement ATM, just had this idea, will implement myself in near future. Than maybe you can add in readme for users.

With drawPath option in plugin it's more flexible to achieve such solution.

sikandernoori avatar Aug 10 '23 17:08 sikandernoori

If you create a tool for this, I'd be happy to add it to the readme, keep us posted 😁

ikbendewilliam avatar Sep 11 '23 07:09 ikbendewilliam