I’d like to create image (from another one) with rounded corners with GDI+. What’s the best way to do this?
PS: it’s not for web, so I cannot make use of client CSS
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This function seems to do what you want. It can also easily be modified to return a Bitmap if needed. You’ll also need to clean up any images you no longer want, etc.. Adapted from:
http://www.jigar.net/howdoi/viewhtmlcontent98.aspx