CGPattern

A 2D pattern to be used for drawing graphics paths.

Overview

Core Graphics tiles the pattern cell for you, based on parameters you specify when you call init(info:bounds:matrix:xStep:yStep:tiling:isColored:callbacks:).

To create a dashed line, see setLineDash(phase:lengths:count:) in CGContext.

Symbols

Getting the CFType ID

class var typeID: CFTypeID

Returns the type identifier for Core Graphics patterns.

Callbacks

CGPatternDrawPatternCallback

Draws a pattern cell.

CGPatternReleaseInfoCallback

Release private data or resources associated with the pattern.

Data Types

CGPattern

A 2D pattern to be used for drawing graphics paths.

CGPatternCallbacks

A structure that holds a version and two callback functions for drawing a custom pattern.

Constants

CGPatternTiling

Different methods for rendering a tiled pattern.