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

# hueBlendMode()

Blends colors of two images by computing the sum of image color values.

## Declaration

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

## Return Value

Return Value The modified image.

## Discussion

Discussion This method applies the hue-blend mode filter to an image. The effect uses the values of the saturation and luminance from the background image with the hue of the input image to produce the output. The hue-blend mode filter uses the following properties: The following code creates a filter that applies the hue-blend mode filter. func hueBlendMode(inputImage: CIImage, backgroundImage: CIImage) -> CIImage {     let colorBlendFilter = CIFilter.hueBlendMode()     colorBlendFilter.inputImage = inputImage     colorBlendFilter.backgroundImage = backgroundImage     return colorBlendFilter.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)
- [divideBlendMode()](coreimage/cifilter-swift.class/divideblendmode().md)
- [exclusionBlendMode()](coreimage/cifilter-swift.class/exclusionblendmode().md)
- [hardLightBlendMode()](coreimage/cifilter-swift.class/hardlightblendmode().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)
