<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIFilterShape/insetBy(x:y:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIFilterShape(im)insetByX:Y:"
  },
  "title" : "insetBy(x:y:)"
}
-->

# insetBy(x:y:)

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

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)