Path2D Canvas.createPath2D( Path2D path)参数Path2D path返回值Path2DPath2D Canvas.createPath2D(Path2D path) 基础库 2.11.0 开始支持,低版本需做兼容处理。 创建 Path2D 对象 参数Path2D path返回值Path2D