---
title: CIFilterShape
framework: coreimage
role: symbol
role_heading: Class
path: coreimage/cifiltershape
---

# CIFilterShape

A description of the bounding shape of a filter and the domain of definition for a filter operation.

## Declaration

```swift
class CIFilterShape
```

## Overview

Overview You use CIFilterShape objects in conjunction with Core Image classes, such as CIFilter, CIKernel, and CISampler, to create custom filters.

## Topics

### Initializing a Filter Shape

- [init(rect:)](coreimage/cifiltershape/init(rect:).md)

### Inspecting a Filter Shape

- [extent](coreimage/cifiltershape/extent.md)

### Modifying a Filter Shape

- [insetBy(x:y:)](coreimage/cifiltershape/insetby(x:y:).md)
- [intersect(with:)](coreimage/cifiltershape/intersect(with:)-8iw.md)
- [intersect(with:)](coreimage/cifiltershape/intersect(with:)-2o2n8.md)
- [transform(by:interior:)](coreimage/cifiltershape/transform(by:interior:).md)
- [union(with:)](coreimage/cifiltershape/union(with:)-52mnd.md)
- [union(with:)](coreimage/cifiltershape/union(with:)-75ebo.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Custom Filters

- [Writing Custom Kernels](coreimage/writing-custom-kernels.md)
- [CIKernel](coreimage/cikernel.md)
- [CIColorKernel](coreimage/cicolorkernel.md)
- [CIWarpKernel](coreimage/ciwarpkernel.md)
- [CIBlendKernel](coreimage/ciblendkernel.md)
- [CISampler](coreimage/cisampler.md)
- [CIFormat](coreimage/ciformat.md)
