INT left = min(topLeft.X, bottomRight.X); INT right = max(topLeft.X, bottomRight.X); INT top = min(topLeft.Y, bottomRight.Y); INT bottom = max(topLeft.Y, bottomRight.Y); INT offsetX = (right-left)*percentageRounded/100; INT offsetY = (bottom-top)*percentageRounded/100; Gra...
/// 带圆角矩形 /// /// 圆角半径 privatevoiddrawRoundedRect(Graphics g, System.Drawing.Pen pen,intx,inty,intwidth,intheight,intradius) { //去掉圆角的锯齿 g.SmoothingMode = SmoothingMode.HighQuality; //上 g.DrawLine(pen,newPointF(x + radius, y),newPointF(x + width - radius, y))...
public static void FillRoundRectangle(Graphics g, Brush brush, Rectangle rect, int cornerRadius){ using (GraphicsPath path = CreateRoundedRectanglePath(rect, cornerRadius)){ g.FillPath(brush, path);} } internal static GraphicsPath CreateRoundedRectanglePath(Rectangle rect, int cornerRadius){...
GDI 画圆角矩形(优化)Be**in 上传1.01 MB 文件格式 7z GDI+ 圆角矩形 GDI+画圆角矩形(优化)点赞(0) 踩踩(0) 反馈 所需:30 积分 电信网络下载 资源详情(仅展示部分内容供参考) 画圆角矩形gaoxi0004 2018-12-10 10:38:31 评论 东西很不错