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

# ninePartStretched()

Distorts an image by stretching it between two breakpoints.

## Declaration

```swift
class func ninePartStretched() -> any CIFilter & CINinePartStretched
```

## Return Value

Return Value The distorted image.

## Discussion

Discussion This method applies the nine-part stretched filter to an image. This effect distorts an image by stretching an image to the breakpoint properties while distorting the image based on the grow amount. The nine-part stretched filter uses the following properties: The following code creates a filter that results in a significantly warped image: func ninePartStretch(inputImage: CIImage) -> CIImage {     let filter = CIFilter.ninePartStretched()     filter.inputImage = inputImage     filter.setDefaults()     filter.breakpoint0 = CGPoint(x: 200, y: 200)     filter.breakpoint1 = CGPoint(x: inputImage.extent.size.width-200, y: inputImage.extent.size.height - 200)     filter.growAmount = CGPoint(x: 500, y: 500)     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)
- [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)
