## 海报生成
### 命令行生成
` php think canvas:create ` <font color=red>生成带默认数据以及注释的模板</font>
` php think canvas:create --clear ` <font color=red>生成简洁模板</font>
### 实例实用
```
$canvas = (new Canvas(Poster2::class))->initCanvas();
$response = Response::create($canvas->encode('png'));
$response->header([
'Content-Type'=>'image/png'
]);
return $response;
````