Instance Method

stroke

Draws a line along the receiver’s path using the current stroke color and drawing attributes.

Declaration

- (void)stroke;

Discussion

The drawn line is centered on the path with its sides parallel to the path segment. This method uses the current drawing attributes associated with the receiver. If a particular attribute is not set for the receiver, this method uses the corresponding default attribute.

See Also

Drawing Paths

- fill

Paints the region enclosed by the receiver’s path.

+ fillRect:

Fills the specified rectangular path with the current fill color.

+ strokeRect:

Strokes the path of the specified rectangle using the current stroke color and the default drawing attributes.

+ strokeLineFromPoint:toPoint:

Strokes a line between two points using the current stroke color and the default drawing attributes.

+ drawPackedGlyphs:atPoint:

Draws a set of packed glyphs at the specified point in the current coordinate system.