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

# pixellate()

Enlarges the colors of the pixels to create a blurred effect.

## Declaration

```swift
class func pixellate() -> any CIFilter & CIPixellate
```

## Mentioned in

Customizing Image Transitions

## Return Value

Return Value The modified image.

## Discussion

Discussion This method applies the pixelate filter to an image. The effect produces a result by mapping the image to colored squares with colors defined by the pixels of the input image. The pixelate filter uses the following properties: The following code creates a filter that results in a distorted image made of squares: func pixelate(inputImage: CIImage) -> CIImage {     let pixelate = CIFilter.pixellate()     pixelate.inputImage = inputImage     pixelate.center = CGPoint(x: 150, y: 150)     pixelate.scale = 30     return pixelate.outputImage! }

## See Also

### Filters

- [blendWithAlphaMask()](coreimage/cifilter-swift.class/blendwithalphamask().md)
- [blendWithBlueMask()](coreimage/cifilter-swift.class/blendwithbluemask().md)
- [blendWithMask()](coreimage/cifilter-swift.class/blendwithmask().md)
- [blendWithRedMask()](coreimage/cifilter-swift.class/blendwithredmask().md)
- [bloom()](coreimage/cifilter-swift.class/bloom().md)
- [cannyEdgeDetector()](coreimage/cifilter-swift.class/cannyedgedetector().md)
- [comicEffect()](coreimage/cifilter-swift.class/comiceffect().md)
- [coreMLModel()](coreimage/cifilter-swift.class/coremlmodel().md)
- [crystallize()](coreimage/cifilter-swift.class/crystallize().md)
- [depthOfField()](coreimage/cifilter-swift.class/depthoffield().md)
- [edges()](coreimage/cifilter-swift.class/edges().md)
- [edgeWork()](coreimage/cifilter-swift.class/edgework().md)
- [gaborGradients()](coreimage/cifilter-swift.class/gaborgradients().md)
- [gloom()](coreimage/cifilter-swift.class/gloom().md)
- [heightFieldFromMask()](coreimage/cifilter-swift.class/heightfieldfrommask().md)
