---
title: CIDistanceGradientFromRedMask
framework: coreimage
role: symbol
role_heading: Protocol
path: coreimage/cidistancegradientfromredmask
---

# CIDistanceGradientFromRedMask

The protocol for the Distance Gradient From Red Mask filter.

## Declaration

```swift
protocol CIDistanceGradientFromRedMask : CIFilterProtocol
```

## Overview

Overview Produces an infinite image where the red channel contains the distance in pixels from each pixel to the mask.

## Topics

### Instance Properties

- [inputImage](coreimage/cidistancegradientfromredmask/inputimage.md)
- [maximumDistance](coreimage/cidistancegradientfromredmask/maximumdistance.md)

## Relationships

### Inherits From

- [CIFilterProtocol](coreimage/cifilterprotocol.md)
