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

# cmykHalftone()

Adds a series of colorful dots to an image.

## Declaration

```swift
class func cmykHalftone() -> any CIFilter & CICMYKHalftone
```

## Return Value

Return Value The modified image.

## Discussion

Discussion This method applies a CMYK halftone filter to an image. The effect generates an image containing a series of dots. The dots contain only cyan, magenta, yellow, and black colors. Halftone effect is a set of lines, dots, or circles that contain detail. When viewing the image from a distance, the markings blend together creating the illusion of continuous lines and shapes. Print media commonly uses this effect. The CMYK halftone filter uses the following properties: The following code produces an image with visible dots and less color: func cmyk(inputImage: CIImage) -> CIImage {     let cmykHalftone = CIFilter.cmykHalftone()     cmykHalftone.inputImage = inputImage     cmykHalftone.angle = 1     cmykHalftone.width = 35     cmykHalftone.sharpness = 0.7     cmykHalftone.center = CGPoint(x: 2016, y: 1512)     cmykHalftone.grayComponentReplacement = 1     cmykHalftone.underColorRemoval = 0.1     return cmykHalftone.outputImage! }

## See Also

### Filters

- [circularScreen()](coreimage/cifilter-swift.class/circularscreen().md)
- [dotScreen()](coreimage/cifilter-swift.class/dotscreen().md)
- [hatchedScreen()](coreimage/cifilter-swift.class/hatchedscreen().md)
- [lineScreen()](coreimage/cifilter-swift.class/linescreen().md)
