不是只能给4个参数阿
这样画 指定点就可以了
GeneralPath p1 = new GeneralPath();
// draws the polygon on the side
p1.moveTo(w * .25f, 0.0f);
p1.lineTo(w * .625f, h * .375f);
p1.lineTo(w * .125f, h * .375f);
p1.lineTo(w * .625f, h * .625f);
p1.lineTo(w * .25f, (float) h);
p1.lineTo(0.0f, h * .5f);
p1.closePath();