Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 3 - QuickDraw Drawing / QuickDraw Drawing Reference
Routines / Drawing Lines


LineTo

To draw a line from the graphics pen's current location to a new location, use the LineTo procedure.

PROCEDURE LineTo (h,v: Integer); 
h
The horizontal coordinate of the graphics pen's new location.
v
The vertical coordinate of the graphics pen's new location.
DESCRIPTION
The LineTo procedure draws a line from the graphics pen's current location in the current graphics port to the new location (h,v), which you specify in the local coordinates of the current graphics port. If you are using LineTo to draw a region or polygon, its outline is infinitely thin and is not affected by the values of the pnSize, pnMode, or pnPat field of the graphics port.

SPECIAL CONSIDERATIONS
The LineTo procedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.

SEE ALSO
Listing 3-1 on page 3-15 illustrates how to use this procedure.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996