Drawing operations
Common Graphics includes methods for drawing points, lines, rectangles, polygons, arcs, and strings. All drawing methods are sent to a CgDrawable--either a window or a pixmap. The first keyword in the method describes the function of the method. The first argument passed to the method is always a graphics context. The first keywords of the CG drawing methods follow:
drawArc:
drawArcs:
drawImageString:
drawLine:
drawLines:
drawPoint:
drawPoints:
drawRectangle:
drawRectangles:
drawSegments:
drawString:
drawText:
fillArc:
fillArcs:
fillPolygon:
fillRectangle:
fillRectangles:
Because the
drawString:,
drawImageString:, and
drawText: methods require the use of fonts, they are described in the subsection
"Using fonts". The other drawing methods are covered in the following subsections:
Last modified date: 01/29/2015