Instance Property

patternPhase

The amount to offset the pattern color when filling the receiver.

Declaration

var patternPhase: NSPoint { get set }

Discussion

Use this property when you need to line up the pattern color with another pattern, such as the pattern in a superview. The pattern phase is a translation (width, height) applied before a pattern is drawn in the current context and is part of the saved graphics state of the context. The default pattern phase is (0,0). Setting the pattern phase has the effect of temporarily changing the pattern matrix of any pattern you decide to draw. For example, setting the pattern phase to (2,3) has the effect of moving the start of pattern cell tiling to the point (2,3) in default user space.

See Also

Configuring Rendering Options

var compositingOperation: NSCompositingOperation

The receiver’s global compositing operation setting.

enum NSCompositingOperation

Compositing operators, described in terms of having source and destination images, each having an opaque and transparent region.

var imageInterpolation: NSImageInterpolation

A constant that specifies the receiver’s interpolation (image smoothing) behavior.

enum NSImageInterpolation

Interpolations used by the imageInterpolation property.

var shouldAntialias: Bool

A Boolean value indicating whether the receiver uses antialiasing.