Instance Method

strokePath:inContext:

Draws a line along the specified path.

Declaration

- (void)strokePath:(CGPathRef)path inContext:(CGContextRef)context;

Parameters

path

The path to draw.

context

The graphics context in which to draw the path.

Discussion

You must set the current stroke color before calling this method. Typically you do this by calling the applyStrokePropertiesToContext:atZoomScale: method prior to drawing. If the strokeColor property is currently nil, this method does nothing.

See Also

Drawing the Path

- applyStrokePropertiesToContext:atZoomScale:

Applies the receiver’s current stroke-related drawing properties to the specified graphics context.

- applyFillPropertiesToContext:atZoomScale:

Applies the receiver’s current fill-related drawing properties to the specified graphics context.

- fillPath:inContext:

Fills the area enclosed by the specified path.

shouldRasterize

A Boolean that determines if the overlay is rendered as a bitmap before compositing.