Instance Property

flatness

The factor that determines the rendering accuracy for curved path segments.

Declaration

@property(nonatomic) CGFloat flatness;

Discussion

The flatness value measures the largest permissible distance (measured in pixels) between a point on the true curve and a point on the rendered curve. Smaller values result in smoother curves but require more computation time. Larger values result in more jagged curves but are rendered much faster. The default flatness value is 0.6.

In most cases, you should not change the flatness value. However, you might increase the flatness value temporarily to minimize the amount of time it takes to draw a shape temporarily (such as during scrolling).

See Also

Accessing Drawing Properties

lineWidth

The line width of the path.

lineCapStyle

The shape of the paths end points when stroked.

lineJoinStyle

The shape of the joints between connected segments of a stroked path.

miterLimit

The limiting value that helps avoid spikes at junctions between connected line segments.

usesEvenOddFillRule

A Boolean indicating whether the even-odd winding rule is in use for drawing paths.

- setLineDash:count:phase:

Sets the line-stroking pattern for the path.

- getLineDash:count:phase:

Retrieves the line-stroking pattern for the path.