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

# circularWrap()

Distorts an image by increasing the distance of the center of the image.

## Declaration

```swift
class func circularWrap() -> any CIFilter & CICircularWrap
```

## Return Value

Return Value The distorted image.

## Discussion

Discussion This method applies the circular wrap filter to an image. This effect wraps an image around a transparent circle. The distortion of the image increases with the distance from the center of the circle. The circular wrap filter uses the following properties: The following code creates a filter that results in a circular image generated from the input image: func circularWrap(inputImage: CIImage) -> CIImage {    let filter = CIFilter.circularWrap()     filter.inputImage = inputImage     filter.center = CGPoint(         x: inputImage.extent.size.width/2,         y: inputImage.extent.size.height/2     )     filter.angle = .pi     filter.radius = 90     return filter.outputImage! }

let text = CIFilter.textImageGenerator() text.text = "Core Image" text.fontSize = 100 text.fontName = "Chalkboard" text.outputImage! circularWrap(inputImage: text.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)
- [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)
- [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)
