【文件属性】:
文件名称://画圆角矩形-JAVA自学教程(史上最全)
文件大小:9.22MB
文件格式:PPT
更新时间:2021-04-25 23:17:10
JAVA
//画圆角矩形
RoundRectangle2D roundRect = new RoundRectangle2D.Float(160,160,40,40,20,20);
g.draw(roundRect);
roundRect = new RoundRectangle2D.Float(180,180,40,40,20,20);
g.fill(roundRect);
//画几何图形
GeneralPath path = new GeneralPath();
path.moveTo(150,0);
path.lineTo(160,50);
path.curveTo(190,200,240,140,200,100);
g.fill(path);
}
}