---
title: maskImage
framework: coreimage
role: symbol
role_heading: Instance Property
path: coreimage/ciblendwithmask/maskimage
---

# maskImage

A grayscale mask that defines the blend.

## Declaration

```swift
var maskImage: CIImage? { get set }
```

## Discussion

Discussion When a mask value is 0.0, the result is the background. When the mask value is 1.0, the result is the image.

## See Also

### Instance Properties

- [backgroundImage](coreimage/ciblendwithmask/backgroundimage.md)
- [inputImage](coreimage/ciblendwithmask/inputimage.md)
