如何创建图像在C#中圆角?图像、圆角

由网友(對於你 ,硪只能回忆)分享简介:我想创建映像(从另一个)与圆角与GDI +。什么是做到这一点的最好方法是什么?I'd like to create image (from another one) with rounded corners with GDI+. What's the best way to do this?PS:这是不是网络,所以无...

我想创建映像(从另一个)与圆角与GDI +。什么是做到这一点的最好方法是什么?

I'd like to create image (from another one) with rounded corners with GDI+. What's the best way to do this?

PS:这是不是网络,所以无法利用客户端的CSS

PS: it's not for web, so I cannot make use of client CSS

推荐答案

这个功能似乎做你想要的。它也可以很容易地进行修改,如果需要返回一个位图。您还需要清理摘自不再需要任何图像,等等。: http://www.jigar.net/howdoi/viewhtmlcontent98.aspx

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: https://p.xsw88.cn/allimgs/daicuo/20230902/322.png.jpg"); Image RoundedImage = this.RoundCorners(StartImage, 25, Color.White); //Use RoundedImage...

阅读全文

相关推荐

最新文章