# Crop

裁剪图像。

## 参数

<table><thead><tr><th width="198.4826833846656">参数名</th><th width="208.18338610093963">类型</th><th>说明</th></tr></thead><tbody><tr><td>x</td><td><code>int</code></td><td>裁剪区域左上角坐标的 x 轴</td></tr><tr><td>y</td><td><code>int</code></td><td>裁剪区域左上角坐标的 y 轴</td></tr><tr><td>width</td><td><code>int</code></td><td>裁剪区域的宽度</td></tr><tr><td>height</td><td><code>int</code></td><td>裁剪区域的高度</td></tr></tbody></table>

## 返回值

`*imgo.Image` 类型的实例。

## 例子

```go
package main

import (
    "github.com/fishtailstudio/imgo"
)

func main() {
    imgo.Load("gopher.png").
        Crop(50, 50, 50, 50).
        Save("out.png")
}
```
