# Clipping

`Clipping` is a content element that defines the outline of other content elements like [Image](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/image) and [Path](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/path).

## Creating a Clipping

The `Clipping` element exposes a single property:

* `Clip`: Property of type `GeometryBase` representing the [Geometry](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/concepts/geometry) used to clip the content element.

**Example 1** demonstrates how to create a `Clipping` element and assign a `RectangleGeometry` to its `Clip` property.

**Example 1: Create Clipping**

```C#
Clipping clipping = new Clipping();
clipping.Clip = new RectangleGeometry(new Rect(5, 5, 50, 50));
```

## Using Clipping

All inheritors of the `ContentElementBase` class expose a `Clipping` property. Setting it clips the respective content element with the specified clipping.

**Example 2** demonstrates how to clip an image using the `Clipping` created in **Example 1**.

**Example 2: Use Clipping**

```C#
var image = container.Content.AddImage(imageSource);
image.Clipping = clipping;
```

## See Also

* [Geometry](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/concepts/geometry)
