喙是由Graphics2D制作的曲线。 (q.setCurve(x1,y1,controlx,controly,x2,y2)
)
我现在用简单的方法着色整个部分,设置int x和int y然后g.fillPolygon(coordinates here)
......
答案 0 :(得分:0)
Graphics2D类没有setCurve方法,因此我假设您的代码在某处创建了一个弯曲的Shape 对象,并且此对象被绘制到Graphics2D上。因此,不使用draw(Shape s)方法,只需使用fill(Shape s)方法。