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

# edgeWork()

Produces a black-and-white image that looks similar to a woodblock print.

## Declaration

```swift
class func edgeWork() -> any CIFilter & CIEdgeWork
```

## Return Value

Return Value The modified image.

## Discussion

Discussion This method applies the edge work filter to an image. The effect creates a stylized black-and-white rendition of the image that looks similar to a woodblock print. The edge work filter uses the following properties: The following code creates a filter that results in a monochrome image with the edges of objects highlighted: func edgeWork(inputImage: CIImage) -> CIImage {     let edgeWorkFilter = CIFilter.edgeWork()     edgeWorkFilter.inputImage = inputImage     edgeWorkFilter.radius = 4     return edgeWorkFilter.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)
- [gaborGradients()](coreimage/cifilter-swift.class/gaborgradients().md)
- [gloom()](coreimage/cifilter-swift.class/gloom().md)
- [heightFieldFromMask()](coreimage/cifilter-swift.class/heightfieldfrommask().md)
- [hexagonalPixellate()](coreimage/cifilter-swift.class/hexagonalpixellate().md)
