e657. 用直线和曲线绘制图形

 GeneralPath shape = new GeneralPath();
    shape.moveTo(x, y);
    shape.lineTo(x, y);
    shape.quadTo(controlPointX, controlPointY, x, y);
    shape.curveTo(controlPointX1, controlPointY1, controlPointX2, controlPointY2, x, y);
    shape.closePath();

 

Related Examples
posted @ 2018-09-02 21:37  Borter  阅读(277)  评论(0)    收藏  举报