Instance Property


The line width of the path.


@property(nonatomic) CGFloat lineWidth;


The line width defines the thickness of the receiver's stroked path. A width of 0 is interpreted as the thinnest line that can be rendered on a particular device. The actual rendered line width may vary from the specified width by as much as 2 device pixels, depending on the position of the line with respect to the pixel grid and the current anti-aliasing settings. The width of the line may also be affected by scaling factors specified in the current transformation matrix of the active graphics context.

The default line width is 1.0.

See Also

Accessing Drawing Properties


The shape of the paths end points when stroked.


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


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


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


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.