Class

CGPattern

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

Declaration

class CGPattern

Topics

Creating Pattern Objects

enum CGPatternTiling

Different methods for rendering a tiled pattern.

struct CGPatternCallbacks

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

typealias CGPatternReleaseInfoCallback

Release private data or resources associated with the pattern.

Working with Core Foundation Types

class var typeID: CFTypeID

Returns the type identifier for Core Graphics patterns.

See Also

Utility and Support Classes

class CGDataConsumer

An abstraction for data-writing tasks that eliminates the need to manage a raw memory buffer.

class CGDataProvider

An abstraction for data-reading tasks that eliminates the need to manage a raw memory buffer.

class CGShading

A definition for a smooth transition between colors, controlled by a custom function you provide, for drawing radial and axial gradient fills.

class CGGradient

A definition for a smooth transition between colors for drawing radial and axial gradient fills.

class CGFunction

A general facility for defining and using callback functions.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software