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

# holeDistortion()

Distorts an image with a circular area that pushes the image outward.

## Declaration

```swift
class func holeDistortion() -> any CIFilter & CIHoleDistortion
```

## Return Value

Return Value The distorted image.

## Discussion

Discussion This method applies the hole distortion filter to an image. This effect distorts the image by generating a circular area that displaces pixels in the image by pushing them outward from the hole defined by the radius. The absolute threshold filter uses the following properties: The following code creates a filter that results in an image becoming distorted from the center outward: func holeDistortion(inputImage: CIImage) -> CIImage {     let filter = CIFilter.holeDistortion()     filter.inputImage = inputImage     filter.radius = 300     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)
- [lightTunnel()](coreimage/cifilter-swift.class/lighttunnel().md)
- [ninePartStretched()](coreimage/cifilter-swift.class/ninepartstretched().md)
- [ninePartTiled()](coreimage/cifilter-swift.class/nineparttiled().md)
- [pinchDistortion()](coreimage/cifilter-swift.class/pinchdistortion().md)
- [stretchCrop()](coreimage/cifilter-swift.class/stretchcrop().md)
- [torusLensDistortion()](coreimage/cifilter-swift.class/toruslensdistortion().md)
- [twirlDistortion()](coreimage/cifilter-swift.class/twirldistortion().md)
