zl程序教程

您现在的位置是:首页 >  其它

当前栏目

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

绘制 图形 曲线 直线
2023-09-14 09:12:00 时间
 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