|
|
|
|
DrawLineInt
Draws a solid, single pixel wide line with integer coordinates.
Declaration
void NAPI GA_2DRenderFuncs::DrawLineInt(
N_int32 x1,
N_int32 y1,
N_int32 x2,
N_int32 y2,
N_int32 drawLast)
Prototype In
snap/graphics.h
Parameters
x1 |
X1 coordinate |
y1 |
Y1 coordinate |
x2 |
X2 coordinate |
y2 |
Y2 coordinate |
drawLast |
1 to draw last pixel, 0 to skip it |
Description
This function renders a solid line at the specified location and the currently active color and mix. This routine will render a line from (x1,y1) to (x2,y2) inclusive. If the drawLast parameter is set, the last pixel in the line (x2,y2) will be drawn, otherwise it will be skipped. This feature allows multiple lines to be linked together as a polyline for CAD style operations while drawing in XOR mode (and is also required for compatibility with Microsoft Windows).
See Also
DrawBresenhamLine, DrawStippleLine, DrawStippleLineInt, DrawStyleLineInt, DrawClippedLineInt
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com