Supported Browsers Home   
MGL_line Previous   
MGL_lineCoordExt Next   
External Functions Up   

MGL_lineCoord

Draws a line with integer coordinates.

Declaration

void MGLAPI MGL_lineCoord(
    int x1,
    int y1,
    int x2,
    int y2)

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

 

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.

See Also

MGL_line, MGL_lineCoordExt

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com