Can I use imagesharp to implement such a task? #1317
Answered
by
tocsoft
sadness-mugetsu
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
tocsoft
Aug 17, 2020
Replies: 1 comment
-
you should checkout out samples repo. https://github.com/SixLabors/Samples Specifically https://github.com/SixLabors/Samples/blob/master/ImageSharp/AvatarWithRoundedCorner/Program.cs which is an example of drawing an avatar with rounded corners. Alternatively you could use an |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sadness-mugetsu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you should checkout out samples repo. https://github.com/SixLabors/Samples
Specifically https://github.com/SixLabors/Samples/blob/master/ImageSharp/AvatarWithRoundedCorner/Program.cs which is an example of drawing an avatar with rounded corners.
Alternatively you could use an
ImageBrush
and fill in anEllipsePolygon
with the image (for make it render correctly ensure the image has been resized to fit the final circle).