---
title: pinchDistortion()
framework: coreimage
role: symbol
role_heading: Type Method
path: coreimage/cifilter-swift.class/pinchdistortion()
---

# pinchDistortion()

Distorts an image by creating a pinch effect with stronger distortion in the center.

## Declaration

```swift
class func pinchDistortion() -> any CIFilter & CIPinchDistortion
```

## Return Value

Return Value The distorted image.

## Discussion

Discussion This method applies the pinch distortion filter to an image. This effect creates a rectangular area that pinches source pixels inward, distorting those pixels closest to the rectangle the most. The pinch distortion filter uses the following properties: The following code creates a filter that results in a distorted image from the center of the photo: func pinch(inputImage: CIImage) -> CIImage {     let filter = CIFilter.pinchDistortion()     filter.inputImage = inputImage     filter.radius = 400     filter.scale = 0.5     filter.center = CGPoint(x: 1791, y: 1344)     return filter.outputImage! }

## See Also

### Filters

- [bumpDistortion()](coreimage/cifilter-swift.class/bumpdistortion().md)
- [bumpDistortionLinear()](coreimage/cifilter-swift.class/bumpdistortionlinear().md)
- [circleSplashDistortion()](coreimage/cifilter-swift.class/circlesplashdistortion().md)
- [circularWrap()](coreimage/cifilter-swift.class/circularwrap().md)
- [displacementDistortion()](coreimage/cifilter-swift.class/displacementdistortion().md)
- [droste()](coreimage/cifilter-swift.class/droste().md)
- [glassDistortion()](coreimage/cifilter-swift.class/glassdistortion().md)
- [glassLozenge()](coreimage/cifilter-swift.class/glasslozenge().md)
- [holeDistortion()](coreimage/cifilter-swift.class/holedistortion().md)
- [lightTunnel()](coreimage/cifilter-swift.class/lighttunnel().md)
- [ninePartStretched()](coreimage/cifilter-swift.class/ninepartstretched().md)
- [ninePartTiled()](coreimage/cifilter-swift.class/nineparttiled().md)
- [stretchCrop()](coreimage/cifilter-swift.class/stretchcrop().md)
- [torusLensDistortion()](coreimage/cifilter-swift.class/toruslensdistortion().md)
- [twirlDistortion()](coreimage/cifilter-swift.class/twirldistortion().md)
