Is it possible to draw polygon like this and crop it accordingly? #325
AlbertLiu1974
started this conversation in
Ideas
Replies: 1 comment
-
Hi @AlbertLiu1974. Sorry, I was overwhelmed in this week and possibly next week and I can't change library for support third-party canvas drawing. You can change manually from img to canvas html tag in this code: https://github.com/CropperBlazor/Cropper.Blazor/blob/dev/src/Cropper.Blazor/Cropper.Blazor/Components/CropperComponent.razor#L10 if you need it changes urgently. But be careful, canvas can't support @attributes or @onerror or @onload or another events/parameters for canvas html tag. For cropping using polygon, you can use following tutorial: https://cropperblazor.github.io/examples/cropping#crop-a-polygon-image |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @MaxymGorn Kindly reference the image below:
Not sure if it's possible but it's very necessary for me to fulfill some request. Thanks a lot. or some direction to help deal with it?
Br, Albert
Beta Was this translation helpful? Give feedback.
All reactions