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  阅读(267)  评论(0编辑  收藏  举报