|
|
|
|
MGL_lineCoordExt
Draws a line with integer coordinates.
Declaration
void MGLAPI MGL_lineCoordExt(
int x1,
int y1,
int x2,
int y2,
ibool drawLast)
Prototype In
mgraph.h
Parameters
x1 |
x coordinate for first endpoint |
y1 |
y coordinate for first endpoint |
x2 |
x coordinate for second endpoint |
y2 |
y coordinate for second endpoint |
drawLast |
True to draw the last pixel in the line |
Description
Draws a line starting at the point (x1,y1) and ending at the point (x2,y2) in the current pen style, color and dimensions. The CP is not updated, and the line is clipped to the current clipping rectangle if clipping in on. Note that this function takes the coordinates of the lines in integer format.
If the drawLast parameter is true, the last pixel in the line is drawn. If not the last pixel is skipped. This is useful for drawing polylines so that the lines join up correctly and do not cause over draw when drawing in non-replace mode.
See Also
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com