# Crop via the UI

When pressing the crop button a red border will appear on the image. You can adjust the size and then pressing **Accept** will confirm the operation.

![WinForms RadImageEditor Crop Option](https://www.telerik.com/products/winforms/documentation/assets/9470e1f8b206e9f4ce3ff430a2960c47/image-editor-crop001.png)

## Crop Programmatically

To perform a Crop operation use the **Crop** method. You need to pass a rectangle to it.

#### Crop Programmatically

```C#
radImageEditor1.ImageEditorElement.Crop(new Rectangle(0, 0, 20, 20));
radImageEditor1.ImageEditorElement.SaveState();
```

```VB.NET
radImageEditor1.ImageEditorElement.Crop(New Rectangle(0, 0, 20, 20))
radImageEditor1.ImageEditorElement.SaveState()
```

## See Also

* [Getting Started](https://www.telerik.com/products/winforms/documentation/controls/image-editor/getting-started)
* [Structure](https://www.telerik.com/products/winforms/documentation/controls/image-editor/structure)
* [Properties and Events](https://www.telerik.com/products/winforms/documentation/controls/image-editor/properties-and-events)
