Contents

GraphicsContext.Filter

A type that applies image processing operations to rendered content.

Declaration

struct Filter

Overview

Create and configure a filter that produces an image processing effect, like adding a drop shadow or a blur effect, by calling one of the factory methods defined by the Filter structure. Call the addFilter(_:options:) method to add the filter to a GraphicsContext. The filter only affects content that you draw into the context after adding the filter.

Topics

Changing brightness and contrast

Manipulating color

Adding blur

Adding a shadow

Adjusting opacity

Adding a transformation

Using a custom Metal shader

See Also

Filtering