---
title: "insetBy(x:y:)"
framework: coreimage
role: symbol
role_heading: Instance Method
path: "coreimage/cifiltershape/insetby(x:y:)"
---

# insetBy(x:y:)

Modifies a filter shape object so that it is inset by the specified x and y values.

## Declaration

```swift
func insetBy(x dx: Int32, y dy: Int32) -> CIFilterShape
```

## Parameters

- `dx`: A value that specifies an inset in the x direction.
- `dy`: A value that specifies an inset in the y direction.

## See Also

### Modifying a Filter Shape

- [intersect(with:)](coreimage/cifiltershape/intersect(with:)-8iw.md)
- [intersect(with:)](coreimage/cifiltershape/intersect(with:)-2o2n8.md)
- [transform(by:interior:)](coreimage/cifiltershape/transform(by:interior:).md)
- [union(with:)](coreimage/cifiltershape/union(with:)-52mnd.md)
- [union(with:)](coreimage/cifiltershape/union(with:)-75ebo.md)
