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

# divideBlendMode()

Divides color values to blend colors.

## Declaration

```swift
class func divideBlendMode() -> any CIFilter & CICompositeOperation
```

## Return Value

Return Value The modified image.

## Discussion

Discussion This method applies the divide-blend mode filter to an image. The effect divides the background image color values by the color values of the input image, resulting in the output image. The divide-blend mode filter uses the following properties: The following code creates a filter that brightens and inverts colors in the background image: func divideBlendMode(inputImage: CIImage, backgroundImage: CIImage) -> CIImage {     let divideBlendMode = CIFilter.divideBlendMode()     divideBlendMode.inputImage = inputImage     divideBlendMode.backgroundImage = backgroundImage     return divideBlendMode.outputImage! }

## See Also

### Filters

- [additionCompositing()](coreimage/cifilter-swift.class/additioncompositing().md)
- [colorBlendMode()](coreimage/cifilter-swift.class/colorblendmode().md)
- [colorBurnBlendMode()](coreimage/cifilter-swift.class/colorburnblendmode().md)
- [colorDodgeBlendMode()](coreimage/cifilter-swift.class/colordodgeblendmode().md)
- [darkenBlendMode()](coreimage/cifilter-swift.class/darkenblendmode().md)
- [differenceBlendMode()](coreimage/cifilter-swift.class/differenceblendmode().md)
- [exclusionBlendMode()](coreimage/cifilter-swift.class/exclusionblendmode().md)
- [hardLightBlendMode()](coreimage/cifilter-swift.class/hardlightblendmode().md)
- [hueBlendMode()](coreimage/cifilter-swift.class/hueblendmode().md)
- [lightenBlendMode()](coreimage/cifilter-swift.class/lightenblendmode().md)
- [linearBurnBlendMode()](coreimage/cifilter-swift.class/linearburnblendmode().md)
- [linearDodgeBlendMode()](coreimage/cifilter-swift.class/lineardodgeblendmode().md)
- [linearLightBlendMode()](coreimage/cifilter-swift.class/linearlightblendmode().md)
- [luminosityBlendMode()](coreimage/cifilter-swift.class/luminosityblendmode().md)
- [minimumCompositing()](coreimage/cifilter-swift.class/minimumcompositing().md)
