Skip to content

Can I use imagesharp to implement such a task? #1317

Answered by tocsoft
sadness-mugetsu asked this question in Q&A
Discussion options

You must be logged in to vote

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 an EllipsePolygon with the image (for make it render correctly ensure the image has been resized to fit the final circle).

Replies: 1 comment

Comment options

You must be logged in to vote
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
Category
Q&A
Labels
None yet
2 participants