MGL_rgnLineCoord

Generate a line as a region.

Declaration

region_t * MGLAPI MGL_rgnLineCoord(
int x1,
int y1,
int x2,
int y2,
const region_t *pen)

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
pen | Region to use as the pen when drawing the line

Return Value

New region generated, NULL if out of memory.

Description

Generates a region as a line starting at the point (x1,y1) and ending at the point (x2,y2). Note that this function takes the coordinates of the lines in integer format.

See Also

MGL_rgnLine

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