This article is a mirror article of machine translation, please click here to jump to the original article.

View: 35609|Reply: 3

[WPF] WPF makes the image display a circular avatar

[Copy link]
Posted on 3/27/2018 7:51:15 PM | | | |
Instead of generating a new image, it converts the image into a circular image.


WPF avatar displays a circular image, the rendering is as above, and the code is as follows:





winform implementation is as follows,



The implementation code is as follows:

Then call the method.







Previous:The Stretch property of the Image in WPF
Next:.net/c# Grab Xiaomi encrypted rabbit software [with source code]
Posted on 4/13/2022 6:51:01 AM |
Thank you for your hard work!!!!
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com