在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
pictureBox2.CreateGraphics();
Pen pen = new Pen(Brushes.Red); //初始半径 float r0 = 10; //圆心 float x0 = 100; float y0 = 100; //圆的宽度和高度 float width = 0; float height = 0; float x = 0; float y = 0; //圆半径的递增数量 float d = 20; for (int i = 0; i < 10; i++) { //计算当前圆的宽度和高度 width = x0 + r0 + d*i; height = y0 + r0 + d*i; //计算当前圆的左上角顶点坐标 x = x0 - width / 2; y = y0 - height / 2; //画圆 graphics.DrawEllipse(pen, x, y, width, height); } |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论