Java基础教学:如何绘制圆角矩形和复杂几何图形

RoundRectangle2D roundRect = new RoundRectangle2D.Float(160,40,20,20); g.draw(roundRect); roundRect = new RoundRectangle2D.Float(180,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); } }
ppt 文件大小:9.2MB