Quickdraw
How to Spool a Picture to a File
OpenPort Allocate and initialize a new GrafPort ClosePort Release memory used by an open GrafPort GetPort Find which GrafPort is currently active InitPort Reset fields of a GrafPort to initial values SetPortBits Assigns a new bit map to the active GrafPort PortSize Change the height and width of current GrafPort GetClip Obtain a copy of the current clipping Region SetClip Set clipping region of active GrafPort ClipRect Set clipping region to a rectangle MovePortTo Change position of top-left corner of portRect InitCursor Initialize cursor to the standard arrow SetCursor Change the shape of the mouse cursor HideCursor Remove the mouse cursor from the screen Pen / Line Drawing
Move Move the pen relative to its current location MoveTo Set pen location without drawing GetPen Obtain current pen position PenMode Set the graphics pen pattern transfer mode PenPat Set the graphics pen pattern PenSize Set dimensions of pen for current GrafPort PenNormal Reset pen parameters to initial state GetPenState Obtain current location, size, and mode of pen SetPenState Set the pen location, size, pattern and mode HidePen Make subsequent pen drawing invisible ShowPen Balance previous HidePen(); make pen visible Line Draw a line a specified distance LineTo Draw a line to specified coordinates DrawChar Draw a character at current pen location DrawString Draw a length-prefixed string of characters DrawText Draw text from any arbitrary buffer MeasureText Get width of every leading subset of unformatted text TextFont Select font for subsequent text drawing TextSize Set the size for subsequent text drawing SpaceExtra Space out text for left/right justification Rectangles
EraseRect Fill rectangle with background pattern FillRect Fill rectangle with specified pattern InvertRect Invert all pixels en closed by a rectangle PaintRect Fill rectangle with current pen pattern and mode SetRect Assign boundary coordinates to a Rect OffsetRect Move a rectangle horizontally and vertically SectRect Get intersection of two rectangles; check for overlap UnionRect Find smallest rectangle enclosing two rectangles MapRect Scale and reposition a rectangle PtInRect Find if a point is en closed by a rectangle Pt2Rect Find smallest rectangle enclosing two points Ovals
FillOval Fill an oval with specified pattern FrameOval Draw an oval within a specified rectangle PaintOval Fill an oval with current pen pattern and mode RoundRects
Arcs / Wedges
EraseArc Fill wedge of an oval with background pattern FillArc Fill a wedge of an oval with specified pattern InvertArc Invert all pixels in a wedge of an oval PaintArc Fill a wedge with current pen pattern and mode EraseRgn Fill region with background pattern FillRgn Fill region with specified pattern InvertRgn Invert all pixels en closed by a region PaintRgn Fill a region with current pen pattern and mode NewRgn Create an empty Region; obtain a region handle DisposeRgn Deallocate memory used to store a region OpenRgn Begin recording a region shape CloseRgn Stop recording region definition; obtain its data SetRectRgn Set region to rectangle, specifying 4 coordinates