---
title: difference
framework: coreimage
role: symbol
role_heading: Type Property
path: coreimage/ciblendkernel/difference
---

# difference

A blend kernel that creates an image using the difference between the background and foreground images.

## Declaration

```swift
class var difference: CIBlendKernel { get }
```

## Discussion

Discussion

## See Also

### Builtin Blend Kernels

- [clear](coreimage/ciblendkernel/clear.md)
- [color](coreimage/ciblendkernel/color.md)
- [colorBurn](coreimage/ciblendkernel/colorburn.md)
- [colorDodge](coreimage/ciblendkernel/colordodge.md)
- [componentAdd](coreimage/ciblendkernel/componentadd.md)
- [componentMax](coreimage/ciblendkernel/componentmax.md)
- [componentMin](coreimage/ciblendkernel/componentmin.md)
- [componentMultiply](coreimage/ciblendkernel/componentmultiply.md)
- [darken](coreimage/ciblendkernel/darken.md)
- [darkerColor](coreimage/ciblendkernel/darkercolor.md)
- [destination](coreimage/ciblendkernel/destination.md)
- [destinationAtop](coreimage/ciblendkernel/destinationatop.md)
- [destinationIn](coreimage/ciblendkernel/destinationin.md)
- [destinationOut](coreimage/ciblendkernel/destinationout.md)
- [destinationOver](coreimage/ciblendkernel/destinationover.md)
