CGContext


Function Summary
nullCGContextRelease()
          This function is just here for source compatability.
voidCGContextEOFillPath(aContext)
          Fills in the area of the current path, using the even-odd fill rule.
voidCGContextFillPath(aContext)
          Fills in the area of the current path, using the non-zero winding number rule.
voidCGContextAddEllipseInRect(aContext, aRect)
          Draws the outline of an ellipse bounded by a rectangle.
voidCGContextFillEllipseInRect(aContext, aRect)
          Fills an ellipse bounded by a rectangle.
voidCGContextStrokeEllipseInRect(aContext, aRect)
          Strokes an ellipse bounded by the specified rectangle.
voidCGContextStrokePath(aContext)
          Paints a line in the current path of the current context.
voidCGContextStrokeLineSegments(aContext, points, count)
          Strokes multiple line segments.
voidCGContextSetFillColor(aContext, aColor)
          Sets the current fill color.
voidCGContextSetStrokeColor(aContext, aColor)
          Sets the current stroke color.
voidCGContextFillRoundedRectangleInRect(aContext, aRect, aRadius, ne, se, sw, nw)
          Fills a rounded rectangle.

Function Detail

CGContextRelease

function CGContextRelease()
This function is just here for source compatability. It does nothing.

CGContextEOFillPath

function CGContextEOFillPath(aContext)
Fills in the area of the current path, using the even-odd fill rule.
Arguments
aContext - the CGContext of the path

CGContextFillPath

function CGContextFillPath(aContext)
Fills in the area of the current path, using the non-zero winding number rule.
Arguments
aContext - the CGContext of the path

CGContextAddEllipseInRect

function CGContextAddEllipseInRect(aContext, aRect)
Draws the outline of an ellipse bounded by a rectangle.
Arguments
aContext - CGContext to draw on
aRect - the rectangle bounding the ellipse

CGContextFillEllipseInRect

function CGContextFillEllipseInRect(aContext, aRect)
Fills an ellipse bounded by a rectangle.
Arguments
aContext - CGContext to draw on
aRect - the rectangle bounding the ellipse

CGContextStrokeEllipseInRect

function CGContextStrokeEllipseInRect(aContext, aRect)
Strokes an ellipse bounded by the specified rectangle.
Arguments
aContext - CGContext to draw on
aRect - the rectangle bounding the ellipse

CGContextStrokePath

function CGContextStrokePath(aContext)
Paints a line in the current path of the current context.
Arguments
aContext - CGContext to draw on

CGContextStrokeLineSegments

function CGContextStrokeLineSegments(aContext, points, count)
Strokes multiple line segments.
Arguments
aContext - CGContext to draw on
points - an array with an even number of points. The first point is the beginning of the first line segment, the second is the end of the first line segment. The third point is the beginning of second line segment, etc.
count - the number of points in the array

CGContextSetFillColor

function CGContextSetFillColor(aContext, aColor)
Sets the current fill color.
Arguments
aContext - the CGContext
aColor - the new color for the fill

CGContextSetStrokeColor

function CGContextSetStrokeColor(aContext, aColor)
Sets the current stroke color.
Arguments
aContext - the CGContext
aColor - the new color for the stroke

CGContextFillRoundedRectangleInRect

function CGContextFillRoundedRectangleInRect(aContext, aRect, aRadius, ne, se, sw, nw)
Fills a rounded rectangle.
Arguments
aContext - the CGContext to draw into
aRect - the base rectangle
aRadius - the distance from the rectange corner to the rounded corner
ne - set it to YES for a rounded northeast corner
se - set it to YES for a rounded southeast corner
sw - set it to YES for a rounded southwest corner
nw - set it to YES for a rounded northwest corner