|
Description
Draws a line that connects two points.
Syntax
GpStatus WINGDIPAPI GdipDrawLine(
GpGraphics
*graphics,
GpPen *pen,
REAL x1,
REAL y1,
REAL x2,
REAL y2
);
PowerBASIC Syntax
DECLARE FUNCTION GdipDrawLine ( _
BYVAL graphics
AS DWORD, _
BYVAL pen AS
DWORD, _
BYVAL x1 AS
SINGLE, _
BYVAL y1 AS
SINGLE, _
BYVAL x2 AS
SINGLE, _
BYVAL y2 AS
SINGLE _
) AS LONG
Parameters
graphics
[in] Pointer to the
Graphics
object.
pen
[in] Pointer to a pen that is used to draw the
line.
x1
[in] Simple precision value that specifies the
x-coordinate of the starting point of the line.
y1
[in] Simple precision value that specifies the
y-coordinate of the starting point of the line.
x2
[in] Simple precision value that specifies the
x-coordinate of the ending point of the line.
y2
[in] Simple precision value that specifies the
y-coordinate of the ending point of the line.
|